Esempio n. 1
0
 public function test__construct()
 {
     $this->if($asserter = new \mock\mageekguy\atoum\asserter($generator = new atoum\asserter\generator()))->then->object($asserter->getGenerator())->isIdenticalTo($generator);
 }
Esempio n. 2
0
 public function testSetWithArguments()
 {
     $this->if($asserter = new \mock\mageekguy\atoum\asserter(new atoum\asserter\generator()))->then->object($asserter->setWithArguments(array()))->isIdenticalTo($asserter)->mock($asserter)->call('setWith')->never()->object($asserter->setWithArguments(array($argument = uniqid())))->isIdenticalTo($asserter)->mock($asserter)->call('setWith')->withArguments($argument)->once();
 }