Exemplo 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();
 }
Exemplo 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();
 }