assertInstanceof('PhpParser\Lexer', $lexer); $this->assertInstanceof('PhpParser\Parser', $parser); $this->assertInstanceof('PhpParser\PrettyPrinter\Standard', $prettyPrinter); } public function testClassExists() { $this->assertTrue(class_exists('PhpParser\NodeVisitorAbstract')); $this->assertTrue(class_exists('PHPParser_NodeVisitor_NameResolver')); $this->assertFalse(class_exists('PhpParser\FooBar')); $this->assertFalse(class_exists('PHPParser_FooBar')); } }