Пример #1
0
 public function testSetTest()
 {
     $this->if($generator = new testedClass($this))->then->object($generator->setTest($test = clone $this))->isIdenticalTo($generator)->object($generator->getTest())->isIdenticalTo($test);
 }
Пример #2
0
 public function testSetMockGenerator()
 {
     $this->if($test = new emptyTest())->then->object($test->setMockGenerator($mockGenerator = new atoum\test\mock\generator($this)))->isIdenticalTo($test)->object($test->getMockGenerator())->isIdenticalTo($mockGenerator)->object($mockGenerator->getTest())->isIdenticalTo($test);
 }