Esempio n. 1
0
 public function testIsEmpty()
 {
     $this->if($generator = new asserter\generator())->and($parent = new CrawlerAssert($generator))->and($object = new TestedClass($generator, $parent))->then->object($object->isEmpty())->isIdenticalTo($object)->integer($object->getChildCount())->isEqualTo(0)->string($object->getContent())->isEmpty();
 }
Esempio n. 2
0
 public function testIsEmpty()
 {
     $this->if($object = new TestedClass())->then->object($object->isEmpty())->isIdenticalTo($object)->integer($object->getChildCount())->isEqualTo(0)->string($object->getContent())->isEmpty();
 }