Example #1
0
 public function testSetShowProgress()
 {
     $this->given($task = new testedClass())->then->object($task->setShowProgress(true))->isIdenticalTo($task)->boolean($task->getShowProgress())->isTrue()->object($task->setShowProgress(false))->isIdenticalTo($task)->boolean($task->getShowProgress())->isFalse()->object($task->setShowProgress(rand(1, PHP_INT_MAX)))->isIdenticalTo($task)->boolean($task->getShowProgress())->isTrue()->object($task->setShowProgress(0))->isIdenticalTo($task)->boolean($task->getShowProgress())->isFalse();
 }