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