public function PHP_Token_IncludeTest::testGetIncludesCategorized

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

File

drupal/core/vendor/phpunit/php-token-stream/Tests/Token/IncludeTest.php, line 93

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));
}