コード例 #1
0
ファイル: generator.php プロジェクト: xihewang/atoum
 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
ファイル: test.php プロジェクト: hafeez3000/atoum
 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;
 }
コード例 #3
0
ファイル: test.php プロジェクト: 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);
 }
コード例 #4
0
 public function generate($class, $mockNamespace = null, $mockClass = null)
 {
     parent::generate($class, $mockNamespace, $mockClass);
     $this->loosenedMethods = array();
     return $this;
 }