Included vendor/ to the project
This commit is contained in:
28
vendor/phpspec/prophecy/spec/Prophecy/Exception/Prophecy/MethodProphecyExceptionSpec.php
vendored
Normal file
28
vendor/phpspec/prophecy/spec/Prophecy/Exception/Prophecy/MethodProphecyExceptionSpec.php
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace spec\Prophecy\Exception\Prophecy;
|
||||
|
||||
use PhpSpec\ObjectBehavior;
|
||||
use Prophecy\Prophecy\MethodProphecy;
|
||||
use Prophecy\Prophecy\ObjectProphecy;
|
||||
use spec\Prophecy\Exception\Prophecy;
|
||||
|
||||
class MethodProphecyExceptionSpec extends ObjectBehavior
|
||||
{
|
||||
function let(ObjectProphecy $objectProphecy, MethodProphecy $methodProphecy)
|
||||
{
|
||||
$methodProphecy->getObjectProphecy()->willReturn($objectProphecy);
|
||||
|
||||
$this->beConstructedWith('message', $methodProphecy);
|
||||
}
|
||||
|
||||
function it_extends_DoubleException()
|
||||
{
|
||||
$this->shouldBeAnInstanceOf('Prophecy\Exception\Prophecy\ObjectProphecyException');
|
||||
}
|
||||
|
||||
function it_holds_a_stub_reference($methodProphecy)
|
||||
{
|
||||
$this->getMethodProphecy()->shouldReturn($methodProphecy);
|
||||
}
|
||||
}
|
||||
24
vendor/phpspec/prophecy/spec/Prophecy/Exception/Prophecy/ObjectProphecyExceptionSpec.php
vendored
Normal file
24
vendor/phpspec/prophecy/spec/Prophecy/Exception/Prophecy/ObjectProphecyExceptionSpec.php
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace spec\Prophecy\Exception\Prophecy;
|
||||
|
||||
use PhpSpec\ObjectBehavior;
|
||||
use Prophecy\Prophecy\ObjectProphecy;
|
||||
|
||||
class ObjectProphecyExceptionSpec extends ObjectBehavior
|
||||
{
|
||||
function let(ObjectProphecy $objectProphecy)
|
||||
{
|
||||
$this->beConstructedWith('message', $objectProphecy);
|
||||
}
|
||||
|
||||
function it_should_be_a_prophecy_exception()
|
||||
{
|
||||
$this->shouldBeAnInstanceOf('Prophecy\Exception\Prophecy\ProphecyException');
|
||||
}
|
||||
|
||||
function it_holds_double_reference($objectProphecy)
|
||||
{
|
||||
$this->getObjectProphecy()->shouldReturn($objectProphecy);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user