Example #1
0
 public function __construct($argumentName, $reason = '', $params = array())
 {
     $msg = "Missing argument '{$argumentName}'";
     if (strlen($reason) > 0) {
         $msg .= "; reason is '{$reason}'";
     }
     parent::__construct(400, $msg, $msg);
 }
 public function __construct($phaseName)
 {
     // do the right thing if we're given the object rather than
     // its name
     if ($phaseName instanceof Phase) {
         $phaseName = $phaseName->getPhaseName();
     }
     $msg = "No result available for phase '{$phaseName}'";
     parent::__construct(500, $msg, $msg);
 }
 public function __construct($fullPath, $pathSoFar, $leafType)
 {
     $msg = "Invalid path '{$fullPath}'; '{$pathSoFar}' is type '{$leafType}'";
     parent::__construct(400, $msg, $msg);
 }
Example #4
0
 /**
  * @param string $err
  */
 public function __construct($err)
 {
     $msg = "Invalid config - {$err}";
     parent::__construct(500, $msg, $msg);
 }
 public function __construct($pathToFile)
 {
     $msg = "Config file '{$pathToFile}' not found or is unreadable";
     parent::__construct(400, $msg, $msg);
 }
Example #6
0
 /**
  * @param string $msg
  */
 public function __construct($msg)
 {
     $msg = "story cannot run: " . $msg;
     parent::__construct(500, $msg, $msg);
 }
Example #7
0
 public function __construct($reportName)
 {
     $msg = "Unknown report '{$reportName}'; we can find no matching PHP class for it";
     parent::__construct(400, $msg, $msg);
 }
 public function __construct()
 {
     $msg = "You need to use -s to specify which system to test." . PHP_EOL . PHP_EOL . "Use 'storyplayer --list-systems' to see the list of known systems under test.";
     parent::__construct(400, $msg, $msg);
 }
Example #9
0
 public function __construct()
 {
     $msg = "Story should fail";
     parent::__construct(400, $msg, $msg);
 }
Example #10
0
 /**
  * @param string $classname
  */
 public function __construct($classname)
 {
     $msg = "Unable to use class '{$classname}' as a device adapter; it does not implement the DeviceAdapter interface";
     parent::__construct(500, $msg, $msg);
 }
 /**
  * @param string $key
  */
 public function __construct($key)
 {
     $msg = "No such data '{$key}' in the checkpoint";
     parent::__construct(500, $msg, $msg);
 }
Example #12
0
 public function __construct($serviceName)
 {
     $msg = "Injectable '{$serviceName}' has not yet been initialised";
     parent::__construct(400, $msg, $msg);
 }
Example #13
0
 public function __construct($oldProse, $newProse)
 {
     $msg = "Support for '{$oldProse}' has been removed; please use {$newProse} instead";
     parent::__construct(400, $msg, $msg);
 }
 public function __construct()
 {
     $msg = "Cannot start the test device; are both browsermob-proxy and selenium running?";
     parent::__construct(500, $msg, $msg);
 }
 public function __construct($filename)
 {
     $msg = "'{$filename}' is reserved for internal use; please use a different filename";
     parent::__construct(400, $msg, $msg);
 }
 public function __construct($name)
 {
     $msg = "Config entry '{$name}' not in the list";
     parent::__construct(400, $msg, $msg);
 }
 public function __construct()
 {
     $msg = "no support for HTTP Basic Auth available; cannot continue";
     parent::__construct(500, $msg, $msg);
 }
 public function __construct()
 {
     $msg = "No 'remotewebdriver' config section found in loaded config files";
     parent::__construct(500, $msg, $msg);
 }
 public function __construct()
 {
     $msg = "No 'saucelabs' config section found in loaded config files";
     parent::__construct(500, $msg, $msg);
 }
 public function __construct($fullPath)
 {
     $msg = "'{$fullPath}' is not an array";
     parent::__construct(400, $msg, $msg);
 }
 public function __construct()
 {
     $msg = "Cannot change data in the checkpoint; checkpoint is currently in readonly mode";
     parent::__construct(500, $msg, $msg);
 }
 public function __construct()
 {
     $msg = "'username' is missing from the 'saucelabs' section of the loaded config";
     parent::__construct(500, $msg, $msg);
 }
Example #23
0
 /**
  * @param string $className
  */
 public function __construct($className)
 {
     $msg = "Class '{$className}' does not inherit from Prose\\Prose";
     parent::__construct(500, $msg, $msg);
 }
Example #24
0
 public function __construct($phase)
 {
     $msg = "No such story phase '{$phase}'";
     parent::__construct(500, $msg, $msg);
 }
Example #25
0
 public function __construct($msg)
 {
     parent::__construct(400, $msg, $msg);
 }
 public function __construct($envName)
 {
     $msg = "Unknown test environment '{$envName}'; we have no config for it" . PHP_EOL . PHP_EOL . "Use 'storyplayer list-test-environments' to see the list of known test environments";
     parent::__construct(400, $msg, $msg);
 }
 public function __construct($fullPath)
 {
     $msg = "Path '{$fullPath}' not found";
     parent::__construct(400, $msg, $msg);
 }
 public function __construct($expectedClassname, $actualClassname)
 {
     $msg = "Cannot add configs of type '{$actualClassname}' into a list of type '{$expectedClassname}'";
     parent::__construct(400, $msg, $msg);
 }
Example #29
0
 public function __construct()
 {
     $msg = "No SSH username set; cannot run SSH command";
     parent::__construct(400, $msg, $msg);
 }
 public function __construct($pathToFile)
 {
     $msg = "Config file '{$pathToFile}' contains invalid JSON";
     parent::__construct(400, $msg, $msg);
 }