You are here

public function PHP_Token_IncludeTest::testGetIncludesCategorized 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::testGetIncludesCategorized()

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

File

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

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 testGetIncludesCategorized() {
  $this
    ->assertSame(array(
    'require_once' => array(
      'test4.php',
    ),
    'require' => array(
      'test3.php',
    ),
    'include_once' => array(
      'test2.php',
    ),
    'include' => array(
      'test1.php',
    ),
  ), $this->ts
    ->getIncludes(TRUE));
}