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; }
/** @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; }