Beispiel #1
0
 public function testHasNoChild()
 {
     $this->if($generator = new asserter\generator())->and($parent = new CrawlerAssert($generator))->and($object = new TestedClass($generator, $parent))->then->object($object->hasNoChild())->isIdenticalTo($object)->integer($object->getChildCount())->isEqualTo(0);
 }
Beispiel #2
0
 public function testHasNoChild()
 {
     $this->if($object = new TestedClass())->then->object($object->hasNoChild())->isIdenticalTo($object)->integer($object->getChildCount())->isEqualTo(0);
 }