Eloquent\Phony\Facade\AbstractFacade::mock PHP 메소드

mock() 공개 정적인 메소드

Each value in $types can be either a class name, or an ad hoc mock definition. If only a single type is being mocked, the class name or definition can be passed without being wrapped in an array.
public static mock ( mixed $types = [] ) : Eloquent\Phony\Mock\Handle\InstanceHandle
$types mixed The types to mock.
리턴 Eloquent\Phony\Mock\Handle\InstanceHandle A handle around the new mock.
    public static function mock($types = array())
    {
        $driver = static::driver();
        return $driver->handleFactory->instanceHandle($driver->mockBuilderFactory->create($types)->full());
    }