/** tests prepareExecCommand function */ public function testPrepareExecCommand() { $app = 'php'; if (KWUtils::isWindows()) { $app .= '.exe'; } $returnVal = KWUtils::prepareExecCommand($app, array('blah1', 'blah2', 'blah3')); $appPath = KWUtils::findApp($app, true); $this->assertEquals($returnVal, "'" . $appPath . "' 'blah1' 'blah2' 'blah3'"); }