Example #1
0
 /** @test */
 public function TestGetMethodFromCommand()
 {
     /*//
     	test that the command to methodname translation is working as intended
     	for various inputs.
     	//*/
     $this->AssertEquals('HandleRun', Nether\Console\Client::GetMethodFromCommand('run'));
     ////////
     ////////
     foreach (['run-things', 'run_things', 'Run-ThiNgs'] as $cmd) {
         $this->AssertEquals('HandleRunThings', Nether\Console\Client::GetMethodFromCommand($cmd));
     }
     unset($cmd);
     return;
 }