comparison vendor/phpspec/prophecy/spec/Prophecy/Exception/Doubler/MethodNotFoundExceptionSpec.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace spec\Prophecy\Exception\Doubler;
4
5 use PhpSpec\ObjectBehavior;
6 use spec\Prophecy\Exception\Prophecy;
7
8 class MethodNotFoundExceptionSpec extends ObjectBehavior
9 {
10 function let()
11 {
12 $this->beConstructedWith('', 'User', 'getName', array(1, 2, 3));
13 }
14
15 function it_is_DoubleException()
16 {
17 $this->shouldHaveType('Prophecy\Exception\Doubler\DoubleException');
18 }
19
20 function it_has_MethodName()
21 {
22 $this->getMethodName()->shouldReturn('getName');
23 }
24
25 function it_has_classnamej()
26 {
27 $this->getClassname()->shouldReturn('User');
28 }
29
30 function it_has_an_arguments_list()
31 {
32 $this->getArguments()->shouldReturn(array(1, 2, 3));
33 }
34
35 function it_has_a_default_null_argument_list()
36 {
37 $this->beConstructedWith('', 'User', 'getName');
38 $this->getArguments()->shouldReturn(null);
39 }
40 }