public function testFastArrayAccessHelper() { $fastArrayAccessHelper = new \Synga\InheritanceFinder\Helpers\FastArrayAccessHelper(); $phpClass = new \Synga\InheritanceFinder\PhpClass(); $phpClass->setFile(new \Symfony\Component\Finder\SplFileInfo(__DIR__, __DIR__, __DIR__)); $arrayTest = [$phpClass]; $fastArrayAccessHelperResult = $fastArrayAccessHelper->getPathnameArray($arrayTest); $this->assertCount(1, $fastArrayAccessHelperResult); $this->assertSame(__DIR__, key($fastArrayAccessHelperResult)); }
public function testIsNotValid() { $phpClass = new \Synga\InheritanceFinder\PhpClass(); $this->assertFalse($phpClass->isValid()); }