PHP Class PhpSpec\Wrapper\Wrapper

Show file Open project: phpspec/phpspec Class Usage Examples

Public Methods

Method Description
__construct ( MatcherManager $matchers, PhpSpec\Formatter\Presenter\Presenter $presenter, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, ExampleNode $example, PhpSpec\CodeAnalysis\AccessInspector $accessInspector = null )
wrap ( object $value = null ) : Subject

Private Methods

Method Description
createCaller ( WrappedObject $wrappedObject ) : Caller

Method Details

__construct() public method

public __construct ( MatcherManager $matchers, PhpSpec\Formatter\Presenter\Presenter $presenter, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, ExampleNode $example, PhpSpec\CodeAnalysis\AccessInspector $accessInspector = null )
$matchers PhpSpec\Runner\MatcherManager
$presenter PhpSpec\Formatter\Presenter\Presenter
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$example PhpSpec\Loader\Node\ExampleNode
$accessInspector PhpSpec\CodeAnalysis\AccessInspector

wrap() public method

public wrap ( object $value = null ) : Subject
$value object
return Subject