Kraken\_Unit\Filesystem\FilesystemManagerTest::expect PHP Метод

expect() публичный Метод

public expect ( Prophecy\Prophecy\ObjectProphecy $object, string $method, mixed[] $args = null, integer $times = 1 ) : Prophecy\Prophecy\MethodProphecy
$object Prophecy\Prophecy\ObjectProphecy
$method string
$args mixed[]
$times integer
Результат Prophecy\Prophecy\MethodProphecy
    public function expect($object, $method, $args = null, $times = 1)
    {
        $args = $args === null ? [Argument::any()] : $args;
        $mock = call_user_func_array([$object, $method], $args);
        return $mock->shouldBeCalledTimes($times);
    }
FilesystemManagerTest