Exemplo n.º 1
0
 public function test__construct()
 {
     $this->if($object = new TestedClass($generator = new asserter\generator()))->then->object($object->getLocale())->isIdenticalTo($generator->getLocale())->object($object->getGenerator())->isIdenticalTo($generator);
 }
Exemplo n.º 2
0
 public function test__construct()
 {
     $this->if($object = new TestedClass())->then->object($object->getLocale())->isEqualTo(new atoum\locale())->object($object->getGenerator())->isEqualTo(new asserter\generator())->object($object->getAnalyzer())->isEqualTo(new atoum\tools\variable\analyzer())->if($generator = new asserter\generator())->and($locale = new atoum\locale())->and($analyzer = new atoum\tools\variable\analyzer())->and($object = new TestedClass($generator, $analyzer, $locale))->then->object($object->getLocale())->isIdenticalTo($locale)->object($object->getAnalyzer())->isIdenticalTo($analyzer)->object($object->getGenerator())->isIdenticalTo($generator);
 }