Esempio n. 1
0
 public function test__construct()
 {
     $this->if($asserter = new asserters\adapter($generator = new asserter\generator()))->then->object($asserter->getLocale())->isIdenticalTo($generator->getLocale())->object($asserter->getGenerator())->isIdenticalTo($generator)->variable($asserter->getCall())->isNull()->variable($asserter->getAdapter())->isNull()->array($asserter->getBeforeMethodCalls())->isEmpty()->array($asserter->getBeforeFunctionCalls())->isEmpty()->array($asserter->getAfterMethodCalls())->isEmpty()->array($asserter->getAfterFunctionCalls())->isEmpty();
 }
Esempio n. 2
0
 public function test__construct()
 {
     $this->if($asserter = new sut($generator = new asserter\generator()))->then->object($asserter->getLocale())->isIdenticalTo($generator->getLocale())->object($asserter->getGenerator())->isIdenticalTo($generator)->variable($asserter->getCall())->isEqualTo(new test\adapter\call())->variable($asserter->getAdapter())->isNull();
 }