PHP Class PhpSpec\Wrapper\Collaborator

Inheritance: implements PhpSpec\Wrapper\ObjectWrapper
Show file Open project: phpspec/phpspec Class Usage Examples

Public Methods

Method Description
__call ( string $method, array $arguments ) : mixed
__construct ( Prophecy\Prophecy\ObjectProphecy $prophecy )
__get ( string $parameter ) : mixed
__set ( string $parameter, mixed $value )
beADoubleOf ( string $classOrInterface )
beConstructedWith ( array $arguments = null )
getWrappedObject ( ) : object
implement ( string $interface )

Method Details

__call() public method

public __call ( string $method, array $arguments ) : mixed
$method string
$arguments array
return mixed

__construct() public method

public __construct ( Prophecy\Prophecy\ObjectProphecy $prophecy )
$prophecy Prophecy\Prophecy\ObjectProphecy

__get() public method

public __get ( string $parameter ) : mixed
$parameter string
return mixed

__set() public method

public __set ( string $parameter, mixed $value )
$parameter string
$value mixed

beADoubleOf() public method

public beADoubleOf ( string $classOrInterface )
$classOrInterface string

beConstructedWith() public method

public beConstructedWith ( array $arguments = null )
$arguments array

getWrappedObject() public method

public getWrappedObject ( ) : object
return object

implement() public method

public implement ( string $interface )
$interface string