Пример #1
0
 public function testFinish()
 {
     $callable = function (array $item) {
         return '';
     };
     $writer = new CallbackWriter($callable);
     $writer->finish();
 }
Пример #2
0
 /**
  * CliWriter constructor.
  * Output item data in CLI
  */
 public function __construct()
 {
     parent::__construct(function ($item) {
         var_dump($item);
     });
 }