AutoloaderTest.php 554 B

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