3 * This file is part of the PHPUnit_MockObject package.
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
12 * Invocation matcher which does not care about previous state from earlier
15 * This abstract class can be implemented by matchers which does not care about
16 * state but only the current run-time value of the invocation itself.
18 * @since Class available since Release 1.0.0
21 abstract class PHPUnit_Framework_MockObject_Matcher_StatelessInvocation implements PHPUnit_Framework_MockObject_Matcher_Invocation
24 * Registers the invocation $invocation in the object as being invoked.
25 * This will only occur after matches() returns true which means the
26 * current invocation is the correct one.
28 * The matcher can store information from the invocation which can later
29 * be checked in verify(), or it can check the values directly and throw
30 * and exception if an expectation is not met.
32 * If the matcher is a stub it will also have a return value.
34 * @param PHPUnit_Framework_MockObject_Invocation $invocation
35 * Object containing information on a mocked or stubbed method which
39 public function invoked(PHPUnit_Framework_MockObject_Invocation $invocation)
44 * Checks if the invocation $invocation matches the current rules. If it does
45 * the matcher will get the invoked() method called which should check if an
48 * @param PHPUnit_Framework_MockObject_Invocation $invocation
49 * Object containing information on a mocked or stubbed method which
53 public function verify()