Mercurial > hg > isophonics-drupal-site
annotate vendor/nikic/php-parser/test/PhpParser/AutoloaderTest.php @ 9:1fc0ff908d1f
Add another data file
author | Chris Cannam |
---|---|
date | Mon, 05 Feb 2018 12:34:32 +0000 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 namespace PhpParser; |
Chris@0 | 4 |
Chris@0 | 5 /* The autoloader is already active at this point, so we only check effects here. */ |
Chris@0 | 6 |
Chris@0 | 7 class AutoloaderTest extends \PHPUnit_Framework_TestCase { |
Chris@0 | 8 public function testClassExists() { |
Chris@0 | 9 $this->assertTrue(class_exists('PhpParser\NodeVisitorAbstract')); |
Chris@0 | 10 $this->assertFalse(class_exists('PHPParser_NodeVisitor_NameResolver')); |
Chris@0 | 11 |
Chris@0 | 12 $this->assertFalse(class_exists('PhpParser\FooBar')); |
Chris@0 | 13 $this->assertFalse(class_exists('PHPParser_FooBar')); |
Chris@0 | 14 } |
Chris@0 | 15 } |