My first commit of codes
This commit is contained in:
28
vendor/phpspec/phpspec/spec/PhpSpec/Exception/Fracture/InterfaceNotImplementedExceptionSpec.php
vendored
Normal file
28
vendor/phpspec/phpspec/spec/PhpSpec/Exception/Fracture/InterfaceNotImplementedExceptionSpec.php
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace spec\PhpSpec\Exception\Fracture;
|
||||
|
||||
use PhpSpec\ObjectBehavior;
|
||||
|
||||
class InterfaceNotImplementedExceptionSpec extends ObjectBehavior
|
||||
{
|
||||
function let($subject)
|
||||
{
|
||||
$this->beConstructedWith('Not equal', $subject, 'ArrayAccess');
|
||||
}
|
||||
|
||||
function it_is_fracture()
|
||||
{
|
||||
$this->shouldBeAnInstanceOf('PhpSpec\Exception\Fracture\FractureException');
|
||||
}
|
||||
|
||||
function it_provides_a_link_to_subject($subject)
|
||||
{
|
||||
$this->getSubject()->shouldReturn($subject);
|
||||
}
|
||||
|
||||
function it_provides_a_link_to_interface()
|
||||
{
|
||||
$this->getInterface()->shouldReturn('ArrayAccess');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user