comparison vendor/phpspec/prophecy/spec/Prophecy/Exception/Doubler/MethodNotExtendableExceptionSpec.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 MethodNotExtendableExceptionSpec extends ObjectBehavior
9 {
10 function let()
11 {
12 $this->beConstructedWith('', 'User', 'getName');
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_classname()
26 {
27 $this->getClassName()->shouldReturn('User');
28 }
29 }