AutoloaderTest.php 501 B

12345678910111213141516
  1. <?php
  2. namespace PhpParser;
  3. /* The autoloader is already active at this point, so we only check effects here. */
  4. class AutoloaderTest extends \PHPUnit_Framework_TestCase {
  5. public function testClassExists() {
  6. $this->assertTrue(class_exists('PhpParser\NodeVisitorAbstract'));
  7. $this->assertFalse(class_exists('PHPParser_NodeVisitor_NameResolver'));
  8. $this->assertFalse(class_exists('PhpParser\FooBar'));
  9. $this->assertFalse(class_exists('PHPParser_FooBar'));
  10. }
  11. }