Beispiel #1
0
 public function testWithAnyFunctionCallsAfter()
 {
     $this->if($asserter = new asserters\adapter(new asserter\generator()))->then->array($asserter->getAfterFunctionCalls())->isEmpty()->object($asserter->withAnyFunctionCallsAfter())->isIdenticalTo($asserter)->array($asserter->getAfterFunctionCalls())->isEmpty()->if($asserter->setWith($adapter = new test\adapter()))->and($asserter->afterFunctionCall(uniqid()))->then->array($asserter->getAfterFunctionCalls())->isNotEmpty()->object($asserter->withAnyFunctionCallsAfter())->isIdenticalTo($asserter)->array($asserter->getAfterFunctionCalls())->isEmpty()->if($asserter->afterFunctionCall($method1 = uniqid())->afterFunctionCall($method2 = uniqid()))->then->array($asserter->getAfterFunctionCalls())->isNotEmpty()->object($asserter->withAnyFunctionCallsAfter())->isIdenticalTo($asserter)->array($asserter->getAfterFunctionCalls())->isEmpty();
 }