withoutAnyArgument() public method

public withoutAnyArgument ( )
Ejemplo n.º 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\\asserters\\adapter\\exceptions\\logic')->hasMessage('Adapter is undefined')->if($asserter->setWith($adapter = new test\adapter()))->then->exception(function () use($asserter) {
         $asserter->withoutAnyArgument();
     })->isInstanceOf('mageekguy\\atoum\\asserters\\adapter\\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()));
 }