Beispiel #1
0
 public function testDeterminesShortName()
 {
     $api = new Operation(array('name' => 'foobar'));
     $command = new MockCommand(array(), $api);
     $this->assertEquals('foobar', $command->getName());
     $command = new MockCommand();
     $this->assertEquals('mock_command', $command->getName());
     $command = new Sub();
     $this->assertEquals('sub.sub', $command->getName());
 }