public function test__construct() { $this->if($generator = new asserter\generator())->and($parent = new CrawlerAssert($generator))->and($object = new TestedClass($generator, $parent))->then->object($object->getLocale())->isIdenticalTo($generator->getLocale())->object($object->getGenerator())->isIdenticalTo($generator)->object($object->getParent())->isIdenticalTo($parent)->integer($object->getAtLeast())->isEqualTo(1)->variable($object->getExactly())->isNull()->array($object->getAttributes())->isEmpty()->variable($object->getContent())->isNull()->variable($object->getChildCount())->isNull(); }
public function test__construct() { $this->and($object = new TestedClass())->then->object($object->getLocale())->isEqualTo(new atoum\locale())->object($object->getAnalyzer())->isEqualTo(new atoum\tools\variable\analyzer())->object($object->getGenerator())->isEqualTo(new asserter\generator())->variable($object->getParent())->isNull()->integer($object->getAtLeast())->isEqualTo(1)->variable($object->getExactly())->isNull()->array($object->getAttributes())->isEmpty()->variable($object->getContent())->isNull()->variable($object->getChildCount())->isNull()->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); }