Beispiel #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);
 }
Beispiel #2
0
 public function setMockGenerator(test\mock\generator $generator = null)
 {
     if ($generator !== null) {
         $generator->setTest($this);
     } else {
         $generator = new test\mock\generator($this);
     }
     $this->mockGenerator = $generator;
     return $this;
 }
Beispiel #3
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);
 }
 public function generate($class, $mockNamespace = null, $mockClass = null)
 {
     parent::generate($class, $mockNamespace, $mockClass);
     $this->loosenedMethods = array();
     return $this;
 }