예제 #1
0
 public function testSetForeground()
 {
     $this->if($colorizer = new cli\colorizer(uniqid()))->then->object($colorizer->setForeground($foreground = uniqid()))->isIdenticalTo($colorizer)->string($colorizer->getForeground())->isEqualTo($foreground)->object($colorizer->setForeground($foreground = rand(1, PHP_INT_MAX)))->isIdenticalTo($colorizer)->string($colorizer->getForeground())->isEqualTo($foreground);
 }