Example #1
0
 public function PrintLine(string $Input) : Self
 {
     /*//
     	send messages to the console if enabled.
     	//*/
     if (!$this->Config->Verbose) {
         return $this;
     }
     Nether\Console\Client::PrintLine($Input);
     return $this;
 }
Example #2
0
 /** @test */
 public function TestFunctionPassesObject()
 {
     /*//
     	tests that the client passes itself to boring functions that are set
     	to be used as the handlers.
     	//*/
     $_SERVER['argv'][1] = 'nacho';
     $cli = new Nether\Console\Client();
     $cli->SetHandler('nacho', [__CLASS__, 'LocalNachoFunction']);
     $this->AssertTrue($cli->Run());
     return;
 }