Constructive description here
This commit is contained in:
Vendored
Executable
+27
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace spec\Prophecy\Exception\Prediction;
|
||||
|
||||
use PhpSpec\ObjectBehavior;
|
||||
use Prophecy\Prophecy\MethodProphecy;
|
||||
use Prophecy\Prophecy\ObjectProphecy;
|
||||
|
||||
class NoCallsExceptionSpec extends ObjectBehavior
|
||||
{
|
||||
function let(ObjectProphecy $objectProphecy, MethodProphecy $methodProphecy)
|
||||
{
|
||||
$methodProphecy->getObjectProphecy()->willReturn($objectProphecy);
|
||||
|
||||
$this->beConstructedWith('message', $methodProphecy);
|
||||
}
|
||||
|
||||
function it_is_PredictionException()
|
||||
{
|
||||
$this->shouldHaveType('Prophecy\Exception\Prediction\PredictionException');
|
||||
}
|
||||
|
||||
function it_extends_MethodProphecyException()
|
||||
{
|
||||
$this->shouldHaveType('Prophecy\Exception\Prophecy\MethodProphecyException');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user