public function PHP_Token_FunctionTest::testGetName 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::testGetName()
@covers PHP_Token_FUNCTION::getName
File
- vendor/
phpunit/ php-token-stream/ tests/ Token/ FunctionTest.php, line 65
Class
- PHP_Token_FunctionTest
- Tests for the PHP_Token_FUNCTION class.
Code
public function testGetName() {
$this
->assertEquals('foo', $this->functions[0]
->getName());
$this
->assertEquals('bar', $this->functions[1]
->getName());
$this
->assertEquals('foobar', $this->functions[2]
->getName());
$this
->assertEquals('barfoo', $this->functions[3]
->getName());
$this
->assertEquals('baz', $this->functions[4]
->getName());
}