You are here

public function PHP_Token_ClassTest::testIssue19 in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-token-stream/tests/Token/ClassTest.php \PHP_Token_ClassTest::testIssue19()

File

vendor/phpunit/php-token-stream/tests/Token/ClassTest.php, line 68

Class

PHP_Token_ClassTest
Tests for the PHP_Token_CLASS class.

Code

public function testIssue19() {
  $ts = new PHP_Token_Stream(TEST_FILES_PATH . 'issue19.php');
  foreach ($ts as $token) {
    if ($token instanceof PHP_Token_CLASS) {
      $this
        ->assertFalse($token
        ->hasInterfaces());
    }
  }
}