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