Exemplo n.º 1
0
 public function testAtLeast()
 {
     $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->atLeast($count))->isIdenticalTo($object)->integer($object->getAtLeast())->isIdenticalTo($count);
 }
Exemplo n.º 2
0
 public function testAtLeast()
 {
     $this->if($object = new TestedClass())->and($count = rand(0, PHP_INT_MAX))->then->object($object->atLeast($count))->isIdenticalTo($object)->integer($object->getAtLeast())->isIdenticalTo($count);
 }