Update to drupal 8.0.0-rc1. For more information, see https://www.drupal.org/node/2582663
This commit is contained in:
parent
eb34d130a8
commit
f32e58e4b1
8476 changed files with 211648 additions and 170042 deletions
101
vendor/phpspec/prophecy/spec/Prophecy/ArgumentSpec.php
vendored
Normal file
101
vendor/phpspec/prophecy/spec/Prophecy/ArgumentSpec.php
vendored
Normal file
|
@ -0,0 +1,101 @@
|
|||
<?php
|
||||
|
||||
namespace spec\Prophecy;
|
||||
|
||||
use PhpSpec\ObjectBehavior;
|
||||
|
||||
class ArgumentSpec extends ObjectBehavior
|
||||
{
|
||||
function it_has_a_shortcut_for_exact_argument_token()
|
||||
{
|
||||
$token = $this->exact(42);
|
||||
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\ExactValueToken');
|
||||
$token->getValue()->shouldReturn(42);
|
||||
}
|
||||
|
||||
function it_has_a_shortcut_for_any_argument_token()
|
||||
{
|
||||
$token = $this->any();
|
||||
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\AnyValueToken');
|
||||
}
|
||||
|
||||
function it_has_a_shortcut_for_multiple_arguments_token()
|
||||
{
|
||||
$token = $this->cetera();
|
||||
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\AnyValuesToken');
|
||||
}
|
||||
|
||||
function it_has_a_shortcut_for_type_token()
|
||||
{
|
||||
$token = $this->type('integer');
|
||||
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\TypeToken');
|
||||
}
|
||||
|
||||
function it_has_a_shortcut_for_callback_token()
|
||||
{
|
||||
$token = $this->that('get_class');
|
||||
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\CallbackToken');
|
||||
}
|
||||
|
||||
function it_has_a_shortcut_for_object_state_token()
|
||||
{
|
||||
$token = $this->which('getName', 'everzet');
|
||||
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\ObjectStateToken');
|
||||
}
|
||||
|
||||
function it_has_a_shortcut_for_logical_and_token()
|
||||
{
|
||||
$token = $this->allOf('integer', 5);
|
||||
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\LogicalAndToken');
|
||||
}
|
||||
|
||||
function it_has_a_shortcut_for_array_count_token()
|
||||
{
|
||||
$token = $this->size(5);
|
||||
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\ArrayCountToken');
|
||||
}
|
||||
|
||||
function it_has_a_shortcut_for_array_entry_token()
|
||||
{
|
||||
$token = $this->withEntry('key', 'value');
|
||||
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\ArrayEntryToken');
|
||||
}
|
||||
|
||||
function it_has_a_shortcut_for_array_every_entry_token()
|
||||
{
|
||||
$token = $this->withEveryEntry('value');
|
||||
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\ArrayEveryEntryToken');
|
||||
}
|
||||
|
||||
function it_has_a_shortcut_for_identical_value_token()
|
||||
{
|
||||
$token = $this->is('value');
|
||||
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\IdenticalValueToken');
|
||||
}
|
||||
|
||||
function it_has_a_shortcut_for_array_entry_token_matching_any_key()
|
||||
{
|
||||
$token = $this->containing('value');
|
||||
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\ArrayEntryToken');
|
||||
$token->getKey()->shouldHaveType('Prophecy\Argument\Token\AnyValueToken');
|
||||
}
|
||||
|
||||
function it_has_a_shortcut_for_array_entry_token_matching_any_value()
|
||||
{
|
||||
$token = $this->withKey('key');
|
||||
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\ArrayEntryToken');
|
||||
$token->getValue()->shouldHaveType('Prophecy\Argument\Token\AnyValueToken');
|
||||
}
|
||||
|
||||
function it_has_a_shortcut_for_logical_not_token()
|
||||
{
|
||||
$token = $this->not('kagux');
|
||||
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\LogicalNotToken');
|
||||
}
|
||||
|
||||
function it_has_a_shortcut_for_string_contains_token()
|
||||
{
|
||||
$token = $this->containingString('string');
|
||||
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\StringContainsToken');
|
||||
}
|
||||
}
|
Reference in a new issue