Kraken\_Unit\Filesystem\FilesystemManagerTest::testApiIsFile_PassesCallToProperFs_WhenFsExists PHP Method

testApiIsFile_PassesCallToProperFs_WhenFsExists() public method

public testApiIsFile_PassesCallToProperFs_WhenFsExists ( Kraken\Filesystem\FilesystemManagerInterface $man, Prophecy\Prophecy\ObjectProphecy $p1, Prophecy\Prophecy\ObjectProphecy $p2 )
$man Kraken\Filesystem\FilesystemManagerInterface
$p1 Prophecy\Prophecy\ObjectProphecy
$p2 Prophecy\Prophecy\ObjectProphecy
    public function testApiIsFile_PassesCallToProperFs_WhenFsExists(FilesystemManagerInterface $man, ObjectProphecy $p1, ObjectProphecy $p2)
    {
        $expected = new StdClass();
        $this->expect($p1, 'isFile', ['path'])->willReturn($expected);
        $this->prevent($p2, 'isFile');
        $this->assertSame($expected, $man->isFile('fs1://path'));
    }
FilesystemManagerTest