You are here

public function PHP_Token_FunctionTest::testGetDocblock in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-token-stream/tests/Token/FunctionTest.php \PHP_Token_FunctionTest::testGetDocblock()

@covers PHP_Token_FUNCTION::getDocblock

File

vendor/phpunit/php-token-stream/tests/Token/FunctionTest.php, line 101

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());
}