Chris@0: Chris@0: * Marcello Duarte Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Prophecy\Prediction; Chris@0: Chris@0: use Prophecy\Call\Call; Chris@0: use Prophecy\Prophecy\ObjectProphecy; Chris@0: use Prophecy\Prophecy\MethodProphecy; Chris@0: Chris@0: /** Chris@0: * Prediction interface. Chris@0: * Predictions are logical test blocks, tied to `should...` keyword. Chris@0: * Chris@0: * @author Konstantin Kudryashov Chris@0: */ Chris@0: interface PredictionInterface Chris@0: { Chris@0: /** Chris@0: * Tests that double fulfilled prediction. Chris@0: * Chris@0: * @param Call[] $calls Chris@0: * @param ObjectProphecy $object Chris@0: * @param MethodProphecy $method Chris@0: * Chris@0: * @throws object Chris@0: * @return void Chris@0: */ Chris@0: public function check(array $calls, ObjectProphecy $object, MethodProphecy $method); Chris@0: }