1<?php 2 3class MyCommand extends PHPUnit_TextUI_Command 4{ 5 public function __construct() 6 { 7 $this->longOptions['my-option='] = 'myHandler'; 8 $this->longOptions['my-other-option'] = null; 9 } 10 11 public function myHandler($value) 12 { 13 echo __METHOD__ . " $value\n"; 14 } 15} 16