You are here

public function PHP_Token_IncludeTest::testGetIncludesCategory in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-token-stream/tests/Token/IncludeTest.php \PHP_Token_IncludeTest::testGetIncludesCategory()

@covers PHP_Token_Includes::getName @covers PHP_Token_Includes::getType

File

vendor/phpunit/php-token-stream/tests/Token/IncludeTest.php, line 66

Class

PHP_Token_IncludeTest
Tests for the PHP_Token_REQUIRE_ONCE, PHP_Token_REQUIRE PHP_Token_INCLUDE_ONCE and PHP_Token_INCLUDE_ONCE classes.

Code

public function testGetIncludesCategory() {
  $this
    ->assertSame(array(
    'test4.php',
  ), $this->ts
    ->getIncludes(TRUE, 'require_once'));
}