/** * @param \PDepend\Source\AST\ASTNamespace $namespace * @return void * @depends PDepend\EngineTest::testSupportForSingleFileIssue90 */ public function testSupportForSingleFileIssue90ExpectedNumberOfInterfaces(ASTNamespace $namespace) { $this->assertSame(1, count($namespace->getInterfaces())); }
/** * testGetInterfacesReturnsInjectInterfaceInstance * * @return void */ public function testGetInterfacesReturnsNotInjectClassInstance() { $namespace = new ASTNamespace(__FUNCTION__); $namespace->addType(new ASTClass(__CLASS__)); $this->assertEquals(0, count($namespace->getInterfaces())); }