Ejemplo n.º 1
0
 public function test_serialize_nameless_option()
 {
     $options = ['--' => ['/tmp/1.txt', '/tmp/2.txt']];
     $cmd = new Command($_SERVER['PHP_SELF'], [], $options);
     $this->assertEquals("{$_SERVER['PHP_SELF']} -- /tmp/1.txt /tmp/2.txt", $cmd->serialize());
 }