public function PHP_Token_FunctionTest::testGetLine in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/php-token-stream/tests/Token/FunctionTest.php \PHP_Token_FunctionTest::testGetLine()
@covers PHP_Token::getLine
File
- vendor/
phpunit/ php-token-stream/ tests/ Token/ FunctionTest.php, line 77
Class
- PHP_Token_FunctionTest
- Tests for the PHP_Token_FUNCTION class.
Code
public function testGetLine() {
$this
->assertEquals(5, $this->functions[0]
->getLine());
$this
->assertEquals(10, $this->functions[1]
->getLine());
$this
->assertEquals(17, $this->functions[2]
->getLine());
$this
->assertEquals(21, $this->functions[3]
->getLine());
$this
->assertEquals(29, $this->functions[4]
->getLine());
}