Skip to content

ExpectBuilder

Rasuvaeff\Understudy\ExpectBuilder

ClassPackage: rasuvaeff/understudySourceVersion: v0.4.1

Extends: WhenBuilder

Type parameters:

  • TReturn of mixed = mixed

Configures a call the code under test is expected to make. Everything a stub can say applies here too; the difference is that an expectation is a claim about what happens, checked by verifyAll(), and defaults to exactly one call.

Methods

ordered()

php
ordered(): static

Requires this call to happen in the order it was declared, relative to the other ordered expectations. Other calls may happen in between.