function testInterfaceDefParser() { $parser = ManifestBuilder::getInterfaceDefParser(); $tokens = $this->getTokens(); $matches = $parser->findAll($tokens); $interfaces = array(); if ($matches) { foreach ($matches as $match) { $interfaces[$match['interfaceName']] = $match; } } $this->assertArrayHasKey('InterfaceA', $interfaces); $this->assertArrayHasKey('InterfaceB', $interfaces); $this->assertEquals('Something', $interfaces['InterfaceB']['extends']); }