![]() ![]() Return values for mocked methods are set with will(). You can either supply the literal values you are expecting, or one of the many constraint objects PHPUnit has. Parameter expectations are supplied as parameters to with(). Following method() is usually one or both of with() and will(). Usually, the next thing in the chain is a method($methodName) call, which specifies which method the expectation is for. ![]() atLeastOnce() Will pass if the method is called more than once. ![]() I find this one doesn’t work well with with().
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |