Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>A look into the source code will tell you:</p> <pre><code>/** * Registers a new expectation in the mock object and returns the match * object which can be infused with further details. * * @param PHPUnit_Framework_MockObject_Matcher_Invocation $matcher * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker */ public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher); </code></pre> <p>And the PHPUnit Manual lists the available Matchers at</p> <ul> <li><a href="https://phpunit.de/manual/current/en/test-doubles.html#test-doubles.mock-objects.tables.matchers">https://phpunit.de/manual/current/en/test-doubles.html#test-doubles.mock-objects.tables.matchers</a></li> </ul> <blockquote> <ul> <li><strong>any()</strong> returns a matcher that matches when the method it is evaluated for is executed zero or more times.</li> <li><strong>never()</strong> returns a matcher that matches when the method it is evaluated for is never executed.</li> <li><strong>atLeastOnce()</strong> returns a matcher that matches when the method it is evaluated for is executed at least once.</li> <li><strong>once()</strong> returns a matcher that matches when the method it is evaluated for is executed exactly once.</li> <li><strong>exactly(int $count)</strong> returns a matcher that matches when the method it is evaluated for is executed exactly $count times.</li> <li><strong>at(int $index)</strong> returns a matcher that matches when the method it is evaluated for is invoked at the given $index. </li> </ul> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload