public function PHP_Token_FunctionTest::testGetDocblock

@covers PHP_Token_FUNCTION::getDocblock

File

drupal/core/vendor/phpunit/php-token-stream/Tests/Token/FunctionTest.php, line 143

Class

PHP_Token_FunctionTest
Tests for the PHP_Token_FUNCTION class.

Code

public function testGetDocblock() {
  $this
    ->assertNull($this->functions[0]
    ->getDocblock());
  $this
    ->assertEquals("/**\n     * @param Baz \$baz\n     */", $this->functions[1]
    ->getDocblock());
  $this
    ->assertEquals("/**\n     * @param Foobar \$foobar\n     */", $this->functions[2]
    ->getDocblock());
  $this
    ->assertNull($this->functions[3]
    ->getDocblock());
  $this
    ->assertNull($this->functions[4]
    ->getDocblock());
}