Mercurial > hg > isophonics-drupal-site
annotate vendor/phpspec/prophecy/spec/Prophecy/Exception/Doubler/ClassNotFoundExceptionSpec.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 ClassNotFoundExceptionSpec extends ObjectBehavior |
Chris@0 | 9 { |
Chris@0 | 10 function let() |
Chris@0 | 11 { |
Chris@0 | 12 $this->beConstructedWith('msg', 'CustomClass'); |
Chris@0 | 13 } |
Chris@0 | 14 |
Chris@0 | 15 function it_is_a_prophecy_exception() |
Chris@0 | 16 { |
Chris@0 | 17 $this->shouldBeAnInstanceOf('Prophecy\Exception\Exception'); |
Chris@0 | 18 $this->shouldBeAnInstanceOf('Prophecy\Exception\Doubler\DoubleException'); |
Chris@0 | 19 } |
Chris@0 | 20 |
Chris@0 | 21 function its_getClassname_returns_classname() |
Chris@0 | 22 { |
Chris@0 | 23 $this->getClassname()->shouldReturn('CustomClass'); |
Chris@0 | 24 } |
Chris@0 | 25 } |