mageekguy\atoum\asserters\adapter::withoutAnyArgument PHP 메소드

withoutAnyArgument() 공개 메소드

public withoutAnyArgument ( )
    public function withoutAnyArgument()
    {
        return $this->withAtLeastArguments(array());
    }

Usage Example

예제 #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()));
 }