Exemplo n.º 1
0
 /**
  * Returns a test configuration param from /data/config.php
  * @param string $name params name
  * @param mixed $default default value to use when param is not set.
  * @return mixed the value of the configuration param
  */
 public function getParam($name, $default = null)
 {
     if (self::$params === null) {
         self::$params = (require __DIR__ . '/data/config.php');
     }
     return isset(self::$params[$name]) ? self::$params[$name] : $default;
 }