Beispiel #1
0
 public function testWithAnyFunctionCallsAfter()
 {
     $this->if($asserter = new asserters\mock($generator = new asserter\generator()))->then->array($asserter->getAfterFunctionCalls())->isEmpty()->object($asserter->withAnyFunctionCallsAfter())->isIdenticalTo($asserter)->array($asserter->getAfterFunctionCalls())->isEmpty()->if($asserter->setWith($mock = new \mock\mageekguy\atoum\tests\units\asserters\dummy()))->and($adapter = new test\adapter())->and($asserter->afterFunctionCall($function = uniqid(), $adapter))->then->array($asserter->getAfterFunctionCalls())->isNotEmpty()->object($asserter->withAnyFunctionCallsAfter())->isIdenticalTo($asserter)->array($asserter->getAfterFunctionCalls())->isEmpty()->if($asserter->afterFunctionCall($function1 = uniqid(), $adapter)->afterFunctionCall($function2 = uniqid(), $adapter))->then->array($asserter->getAfterFunctionCalls())->isNotEmpty()->object($asserter->withAnyFunctionCallsAfter())->isIdenticalTo($asserter)->array($asserter->getAfterFunctionCalls())->isEmpty();
 }