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

testApiIsDir_PassesCallToProperFs_WhenFsExists() public method

public testApiIsDir_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 testApiIsDir_PassesCallToProperFs_WhenFsExists(FilesystemManagerInterface $man, ObjectProphecy $p1, ObjectProphecy $p2)
    {
        $expected = new StdClass();
        $this->expect($p1, 'isDir', ['path'])->willReturn($expected);
        $this->prevent($p2, 'isDir');
        $this->assertSame($expected, $man->isDir('fs1://path'));
    }
FilesystemManagerTest