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
36
vendor/phpspec/prophecy/spec/Prophecy/Prediction/CallbackPredictionSpec.php
vendored
Normal file
36
vendor/phpspec/prophecy/spec/Prophecy/Prediction/CallbackPredictionSpec.php
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
namespace spec\Prophecy\Prediction;
|
||||
|
||||
use PhpSpec\ObjectBehavior;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
class CallbackPredictionSpec extends ObjectBehavior
|
||||
{
|
||||
function let()
|
||||
{
|
||||
$this->beConstructedWith('get_class');
|
||||
}
|
||||
|
||||
function it_is_prediction()
|
||||
{
|
||||
$this->shouldHaveType('Prophecy\Prediction\PredictionInterface');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \Prophecy\Prophecy\ObjectProphecy $object
|
||||
* @param \Prophecy\Prophecy\MethodProphecy $method
|
||||
* @param \Prophecy\Call\Call $call
|
||||
*/
|
||||
function it_proxies_call_to_callback($object, $method, $call)
|
||||
{
|
||||
$returnFirstCallCallback = function ($calls, $object, $method) {
|
||||
throw new RuntimeException;
|
||||
};
|
||||
|
||||
$this->beConstructedWith($returnFirstCallCallback);
|
||||
|
||||
$this->shouldThrow('RuntimeException')->duringCheck(array($call), $object, $method);
|
||||
}
|
||||
}
|
Reference in a new issue