fromFile() public static method

Creates a PHP interface from file
public static fromFile ( string $filename ) : PhpInterface
$filename string
return PhpInterface
 public function testMyCollectionInterface()
 {
     $interface = PhpInterface::fromFile(__DIR__ . '/../fixtures/MyCollectionInterface.php');
     $interface->hasInterface('phootwork\\collection\\Collection');
 }
 public function testFromFile()
 {
     $expected = $this->createDummyInterface();
     $actual = PhpInterface::fromFile(__DIR__ . '/../fixture/DummyInterface.php');
     $this->assertEquals($expected, $actual);
 }