예제 #1
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->getAdapter())->isNull()->variable($asserter->getCall())->isEqualTo(new test\adapter\call());
 }
예제 #2
0
파일: mock.php 프로젝트: ronan-gloo/atoum
 public function test__construct()
 {
     $this->if($asserter = new asserters\mock($generator = new asserter\generator()))->then->object($asserter->getLocale())->isIdenticalTo($generator->getLocale())->object($asserter->getGenerator())->isIdenticalTo($generator)->variable($asserter->getMock())->isNull()->variable($asserter->getCall())->isNull()->array($asserter->getBeforeMethodCalls())->isEmpty()->array($asserter->getAfterMethodCalls())->isEmpty();
 }