public testApiGetTimestamp_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 testApiGetTimestamp_PassesCallToProperFs_WhenFsExists(FilesystemManagerInterface $man, ObjectProphecy $p1, ObjectProphecy $p2)
{
$timestamp = time();
$this->expect($p1, 'getTimestamp', ['path'])->willReturn($timestamp);
$this->prevent($p2, 'getTimestamp');
$this->assertEquals($timestamp, $man->getTimestamp('fs1://path'));
}