Move into nested docroot
This commit is contained in:
parent
83a0d3a149
commit
c8b70abde9
13405 changed files with 0 additions and 0 deletions
28
web/vendor/phpspec/prophecy/spec/Prophecy/Exception/Doubler/ClassCreatorExceptionSpec.php
vendored
Normal file
28
web/vendor/phpspec/prophecy/spec/Prophecy/Exception/Doubler/ClassCreatorExceptionSpec.php
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
namespace spec\Prophecy\Exception\Doubler;
|
||||
|
||||
use PhpSpec\ObjectBehavior;
|
||||
use spec\Prophecy\Exception\Prophecy;
|
||||
|
||||
class ClassCreatorExceptionSpec extends ObjectBehavior
|
||||
{
|
||||
/**
|
||||
* @param \Prophecy\Doubler\Generator\Node\ClassNode $node
|
||||
*/
|
||||
function let($node)
|
||||
{
|
||||
$this->beConstructedWith('', $node);
|
||||
}
|
||||
|
||||
function it_is_a_prophecy_exception()
|
||||
{
|
||||
$this->shouldBeAnInstanceOf('Prophecy\Exception\Exception');
|
||||
$this->shouldBeAnInstanceOf('Prophecy\Exception\Doubler\DoublerException');
|
||||
}
|
||||
|
||||
function it_contains_a_reflected_node($node)
|
||||
{
|
||||
$this->getClassNode()->shouldReturn($node);
|
||||
}
|
||||
}
|
||||
27
web/vendor/phpspec/prophecy/spec/Prophecy/Exception/Doubler/ClassMirrorExceptionSpec.php
vendored
Normal file
27
web/vendor/phpspec/prophecy/spec/Prophecy/Exception/Doubler/ClassMirrorExceptionSpec.php
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
namespace spec\Prophecy\Exception\Doubler;
|
||||
|
||||
use PhpSpec\ObjectBehavior;
|
||||
|
||||
class ClassMirrorExceptionSpec extends ObjectBehavior
|
||||
{
|
||||
/**
|
||||
* @param \ReflectionClass $class
|
||||
*/
|
||||
function let($class)
|
||||
{
|
||||
$this->beConstructedWith('', $class);
|
||||
}
|
||||
|
||||
function it_is_a_prophecy_exception()
|
||||
{
|
||||
$this->shouldBeAnInstanceOf('Prophecy\Exception\Exception');
|
||||
$this->shouldBeAnInstanceOf('Prophecy\Exception\Doubler\DoublerException');
|
||||
}
|
||||
|
||||
function it_contains_a_reflected_class_link($class)
|
||||
{
|
||||
$this->getReflectedClass()->shouldReturn($class);
|
||||
}
|
||||
}
|
||||
25
web/vendor/phpspec/prophecy/spec/Prophecy/Exception/Doubler/ClassNotFoundExceptionSpec.php
vendored
Normal file
25
web/vendor/phpspec/prophecy/spec/Prophecy/Exception/Doubler/ClassNotFoundExceptionSpec.php
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
namespace spec\Prophecy\Exception\Doubler;
|
||||
|
||||
use PhpSpec\ObjectBehavior;
|
||||
use spec\Prophecy\Exception\Prophecy;
|
||||
|
||||
class ClassNotFoundExceptionSpec extends ObjectBehavior
|
||||
{
|
||||
function let()
|
||||
{
|
||||
$this->beConstructedWith('msg', 'CustomClass');
|
||||
}
|
||||
|
||||
function it_is_a_prophecy_exception()
|
||||
{
|
||||
$this->shouldBeAnInstanceOf('Prophecy\Exception\Exception');
|
||||
$this->shouldBeAnInstanceOf('Prophecy\Exception\Doubler\DoubleException');
|
||||
}
|
||||
|
||||
function its_getClassname_returns_classname()
|
||||
{
|
||||
$this->getClassname()->shouldReturn('CustomClass');
|
||||
}
|
||||
}
|
||||
14
web/vendor/phpspec/prophecy/spec/Prophecy/Exception/Doubler/DoubleExceptionSpec.php
vendored
Normal file
14
web/vendor/phpspec/prophecy/spec/Prophecy/Exception/Doubler/DoubleExceptionSpec.php
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace spec\Prophecy\Exception\Doubler;
|
||||
|
||||
use PhpSpec\ObjectBehavior;
|
||||
|
||||
class DoubleExceptionSpec extends ObjectBehavior
|
||||
{
|
||||
function it_is_a_double_exception()
|
||||
{
|
||||
$this->shouldBeAnInstanceOf('RuntimeException');
|
||||
$this->shouldBeAnInstanceOf('Prophecy\Exception\Doubler\DoublerException');
|
||||
}
|
||||
}
|
||||
24
web/vendor/phpspec/prophecy/spec/Prophecy/Exception/Doubler/InterfaceNotFoundExceptionSpec.php
vendored
Normal file
24
web/vendor/phpspec/prophecy/spec/Prophecy/Exception/Doubler/InterfaceNotFoundExceptionSpec.php
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
namespace spec\Prophecy\Exception\Doubler;
|
||||
|
||||
use PhpSpec\ObjectBehavior;
|
||||
use spec\Prophecy\Exception\Prophecy;
|
||||
|
||||
class InterfaceNotFoundExceptionSpec extends ObjectBehavior
|
||||
{
|
||||
function let()
|
||||
{
|
||||
$this->beConstructedWith('msg', 'CustomInterface');
|
||||
}
|
||||
|
||||
function it_extends_ClassNotFoundException()
|
||||
{
|
||||
$this->shouldBeAnInstanceOf('Prophecy\Exception\Doubler\ClassNotFoundException');
|
||||
}
|
||||
|
||||
function its_getClassname_returns_classname()
|
||||
{
|
||||
$this->getClassname()->shouldReturn('CustomInterface');
|
||||
}
|
||||
}
|
||||
40
web/vendor/phpspec/prophecy/spec/Prophecy/Exception/Doubler/MethodNotFoundExceptionSpec.php
vendored
Normal file
40
web/vendor/phpspec/prophecy/spec/Prophecy/Exception/Doubler/MethodNotFoundExceptionSpec.php
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
namespace spec\Prophecy\Exception\Doubler;
|
||||
|
||||
use PhpSpec\ObjectBehavior;
|
||||
use spec\Prophecy\Exception\Prophecy;
|
||||
|
||||
class MethodNotFoundExceptionSpec extends ObjectBehavior
|
||||
{
|
||||
function let()
|
||||
{
|
||||
$this->beConstructedWith('', 'User', 'getName', array(1, 2, 3));
|
||||
}
|
||||
|
||||
function it_is_DoubleException()
|
||||
{
|
||||
$this->shouldHaveType('Prophecy\Exception\Doubler\DoubleException');
|
||||
}
|
||||
|
||||
function it_has_MethodName()
|
||||
{
|
||||
$this->getMethodName()->shouldReturn('getName');
|
||||
}
|
||||
|
||||
function it_has_classnamej()
|
||||
{
|
||||
$this->getClassname()->shouldReturn('User');
|
||||
}
|
||||
|
||||
function it_has_an_arguments_list()
|
||||
{
|
||||
$this->getArguments()->shouldReturn(array(1, 2, 3));
|
||||
}
|
||||
|
||||
function it_has_a_default_null_argument_list()
|
||||
{
|
||||
$this->beConstructedWith('', 'User', 'getName');
|
||||
$this->getArguments()->shouldReturn(null);
|
||||
}
|
||||
}
|
||||
Reference in a new issue