Example #1
0
 public function testHasChildCount()
 {
     $this->if($generator = new asserter\generator())->and($parent = new CrawlerAssert($generator))->and($object = new TestedClass($generator, $parent))->and($count = rand(0, PHP_INT_MAX))->then->object($object->hasChildExactly($count))->isIdenticalTo($object)->integer($object->getChildCount())->isEqualTo($count);
 }
Example #2
0
 public function testHasChildCount()
 {
     $this->if($object = new TestedClass())->and($count = rand(0, PHP_INT_MAX))->then->object($object->hasChildExactly($count))->isIdenticalTo($object)->integer($object->getChildCount())->isEqualTo($count);
 }