Exemplo n.º 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);
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
Arquivo: test.php Projeto: atoum/atoum
 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);
 }
Exemplo n.º 4
0
 public function generate($class, $mockNamespace = null, $mockClass = null)
 {
     parent::generate($class, $mockNamespace, $mockClass);
     $this->loosenedMethods = array();
     return $this;
 }