findFactory() public method

Returns the file stream factory to handle the requested path
public findFactory ( TQ\Vcs\StreamWrapper\PathInformationInterface $path, string $mode ) : Factory
$path TQ\Vcs\StreamWrapper\PathInformationInterface The path information
$mode string The mode used to open the path
return Factory The file buffer factory to handle the path
 /**
  * @expectedException \RuntimeException
  */
 public function testFailsWithoutAnyFactoryResponsible()
 {
     $factory = new Factory();
     $factory1 = $this->createFactoryMock();
     $factory1->expects($this->any())->method('canHandle')->will($this->returnValue(false));
     $factory2 = $this->createFactoryMock();
     $factory2->expects($this->any())->method('canHandle')->will($this->returnValue(false));
     $factory->addFactory($factory1, 10);
     $factory->addFactory($factory2, 30);
     $path = $this->createPathMock();
     $factory->findFactory($path, 'r+');
 }