You are here

public function PHP_Token_ClosureTest::testGetName in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/php-token-stream/tests/Token/ClosureTest.php \PHP_Token_ClosureTest::testGetName()

@covers PHP_Token_FUNCTION::getName

File

vendor/phpunit/php-token-stream/tests/Token/ClosureTest.php, line 54

Class

PHP_Token_ClosureTest
Tests for the PHP_Token_FUNCTION class.

Code

public function testGetName() {
  $this
    ->assertEquals('anonymous function', $this->functions[0]
    ->getName());
  $this
    ->assertEquals('anonymous function', $this->functions[1]
    ->getName());
  $this
    ->assertEquals('anonymous function', $this->functions[2]
    ->getName());
  $this
    ->assertEquals('anonymous function', $this->functions[3]
    ->getName());
  $this
    ->assertEquals('anonymous function', $this->functions[4]
    ->getName());
  $this
    ->assertEquals('anonymous function', $this->functions[5]
    ->getName());
}