annotate vendor/phpspec/prophecy/spec/Prophecy/Exception/Doubler/MethodNotFoundExceptionSpec.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 MethodNotFoundExceptionSpec extends ObjectBehavior
Chris@0 9 {
Chris@0 10 function let()
Chris@0 11 {
Chris@0 12 $this->beConstructedWith('', 'User', 'getName', array(1, 2, 3));
Chris@0 13 }
Chris@0 14
Chris@0 15 function it_is_DoubleException()
Chris@0 16 {
Chris@0 17 $this->shouldHaveType('Prophecy\Exception\Doubler\DoubleException');
Chris@0 18 }
Chris@0 19
Chris@0 20 function it_has_MethodName()
Chris@0 21 {
Chris@0 22 $this->getMethodName()->shouldReturn('getName');
Chris@0 23 }
Chris@0 24
Chris@0 25 function it_has_classnamej()
Chris@0 26 {
Chris@0 27 $this->getClassname()->shouldReturn('User');
Chris@0 28 }
Chris@0 29
Chris@0 30 function it_has_an_arguments_list()
Chris@0 31 {
Chris@0 32 $this->getArguments()->shouldReturn(array(1, 2, 3));
Chris@0 33 }
Chris@0 34
Chris@0 35 function it_has_a_default_null_argument_list()
Chris@0 36 {
Chris@0 37 $this->beConstructedWith('', 'User', 'getName');
Chris@0 38 $this->getArguments()->shouldReturn(null);
Chris@0 39 }
Chris@0 40 }