Skip to content

ExpectBuilder ​

Rasuvaeff\Understudy\ExpectBuilder

Class — Package: rasuvaeff/understudy — Source — Version: v1.1.0-1-g6ed023f

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.