Skip to content

Commit

Permalink
Move "not throw" check to a new test method
Browse files Browse the repository at this point in the history
  • Loading branch information
Deuchnord committed Apr 17, 2023
1 parent 595053d commit 2dfa9d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/Prophecy/ProphetSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,15 @@ function it_exposes_doubler_through_getter($doubler)
$this->getDoubler()->shouldReturn($doubler);
}

function it_throws_ClassNotFound_if_class_to_double_does_not_exist()
function it_throws_ClassNotFound_if_class_to_prophesize_does_not_exist()
{
$this->shouldThrow('Prophecy\Exception\Doubler\ClassNotFoundException')
->duringProphesize('This\ClassOrInterface\Does\Not\Exist');

}

function it_does_not_throw_when_creating_void_mock()
{
$this->shouldNotThrow()
->duringProphesize();
}
Expand Down

0 comments on commit 2dfa9d7

Please sign in to comment.