public it_creates_positive_throw_expectations ( |
||
$matchers | ||
$matcher | PhpSpec\Matcher\Matcher | |
$subject |
function it_creates_positive_throw_expectations(MatcherManager $matchers, Matcher $matcher, Subject $subject)
{
$matchers->find(Argument::cetera())->willReturn($matcher);
$subject->__call('getWrappedObject', array())->willReturn(new \stdClass());
$expectation = $this->create('shouldThrow', $subject);
$expectation->shouldHaveType('PhpSpec\\Wrapper\\Subject\\Expectation\\PositiveThrow');
}