ExpectBuilder
Rasuvaeff\Understudy\ExpectBuilder
Class — Package: rasuvaeff/understudy — Source — Version: 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(): staticRequires this call to happen in the order it was declared, relative to the other ordered expectations. Other calls may happen in between.