Example #1
0
 public function testSetMaxChildren()
 {
     $this->given($task = new testedClass())->then->object($task->setMaxChildren($maxChildren = rand(1, PHP_INT_MAX)))->isIdenticalTo($task)->integer($task->getMaxChildren())->isEqualTo($maxChildren)->object($task->setMaxChildren((string) ($maxChildren = rand(1, PHP_INT_MAX))))->isIdenticalTo($task)->integer($task->getMaxChildren())->isEqualTo($maxChildren);
 }