Example #1
0
File: ItemTest.php Project: BD-ES/Q
 /**
  * Test right the execution of an item callback.
  *
  * @covers ::__construct
  * @covers ::exec
  * @return void
  */
 public function testExec()
 {
     $str = 'HoLa MuNdo';
     $item = new Item(function ($string) {
         return strtolower($string);
     }, $str);
     $this->assertEquals($item->exec(), strtolower($str));
 }