示例#1
0
 public function testWithoutAnyArgument()
 {
     $this->mockGenerator->orphanize('asserterFail')->if($asserter = new sut(new \mock\mageekguy\atoum\asserter\generator()))->then->exception(function () use($asserter) {
         $asserter->withoutAnyArgument();
     })->isInstanceOf('mageekguy\\atoum\\exceptions\\logic')->hasMessage('Mock is undefined')->if($asserter->setWith($mock = new \mock\mageekguy\atoum\tests\units\asserters\dummy()))->then->exception(function () use($asserter) {
         $asserter->withoutAnyArgument();
     })->isInstanceOf('mageekguy\\atoum\\exceptions\\logic')->hasMessage('Call is undefined')->if($asserter->call($function = uniqid()))->then->object($asserter->disableEvaluationChecking()->withoutAnyArgument())->isIdenticalTo($asserter)->object($asserter->getCall())->isEqualTo(new test\adapter\call($function, array(), new decorators\addClass($mock)));
 }