comparison vendor/phpunit/phpunit-mock-objects/src/MockObject.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents
children
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
1 <?php
2 /*
3 * This file is part of the phpunit-mock-objects package.
4 *
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6 *
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
9 */
10
11 use PHPUnit\Framework\ExpectationFailedException;
12 use PHPUnit\Framework\MockObject\Builder\InvocationMocker;
13 use PHPUnit\Framework\MockObject\Matcher\Invocation;
14
15 /**
16 * Interface for all mock objects which are generated by
17 * MockBuilder.
18 *
19 * @method InvocationMocker method($constraint)
20 */
21 interface PHPUnit_Framework_MockObject_MockObject /*extends Verifiable*/
22 {
23 /**
24 * Registers a new expectation in the mock object and returns the match
25 * object which can be infused with further details.
26 *
27 * @param Invocation $matcher
28 *
29 * @return InvocationMocker
30 */
31 public function expects(Invocation $matcher);
32
33 /**
34 * @return InvocationMocker
35 */
36 public function __phpunit_setOriginalObject($originalObject);
37
38 /**
39 * @return InvocationMocker
40 */
41 public function __phpunit_getInvocationMocker();
42
43 /**
44 * Verifies that the current expectation is valid. If everything is OK the
45 * code should just return, if not it must throw an exception.
46 *
47 * @throws ExpectationFailedException
48 */
49 public function __phpunit_verify();
50
51 /**
52 * @return bool
53 */
54 public function __phpunit_hasMatchers();
55 }