Beispiel #1
0
 public function setAsserterGenerator(test\asserter\generator $generator = null)
 {
     if ($generator !== null) {
         $generator->setTest($this);
     } else {
         $generator = new test\asserter\generator($this);
     }
     $this->asserterGenerator = $generator->setTest($this);
     return $this;
 }
Beispiel #2
0
 public function testSetAsserterGenerator()
 {
     $this->if($test = new emptyTest())->then->object($test->setAsserterGenerator($asserterGenerator = new atoum\test\asserter\generator($test)))->isIdenticalTo($test)->object($test->getAsserterGenerator())->isIdenticalTo($asserterGenerator)->object($asserterGenerator->getTest())->isIdenticalTo($test)->object($asserterGenerator->getLocale())->isIdenticalTo($test->getLocale());
 }
Beispiel #3
0
 public function setAsserterGenerator(test\asserter\generator $generator = null)
 {
     if ($generator === null) {
         $generator = new test\asserter\generator($this);
     } else {
         $generator->setTest($this);
     }
     $this->asserterGenerator = $generator->setAlias('array', 'phpArray')->setAlias('in', 'phpArray')->setAlias('class', 'phpClass')->setAlias('function', 'phpFunction');
     return $this;
 }