annotate vendor/phpspec/prophecy/spec/Prophecy/Exception/Doubler/InterfaceNotFoundExceptionSpec.php @ 9:1fc0ff908d1f

Add another data file
author Chris Cannam
date Mon, 05 Feb 2018 12:34:32 +0000
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 <?php
Chris@0 2
Chris@0 3 namespace spec\Prophecy\Exception\Doubler;
Chris@0 4
Chris@0 5 use PhpSpec\ObjectBehavior;
Chris@0 6 use spec\Prophecy\Exception\Prophecy;
Chris@0 7
Chris@0 8 class InterfaceNotFoundExceptionSpec extends ObjectBehavior
Chris@0 9 {
Chris@0 10 function let()
Chris@0 11 {
Chris@0 12 $this->beConstructedWith('msg', 'CustomInterface');
Chris@0 13 }
Chris@0 14
Chris@0 15 function it_extends_ClassNotFoundException()
Chris@0 16 {
Chris@0 17 $this->shouldBeAnInstanceOf('Prophecy\Exception\Doubler\ClassNotFoundException');
Chris@0 18 }
Chris@0 19
Chris@0 20 function its_getClassname_returns_classname()
Chris@0 21 {
Chris@0 22 $this->getClassname()->shouldReturn('CustomInterface');
Chris@0 23 }
Chris@0 24 }