Beispiel #1
0
 /**
  * Construct the class
  *
  * @param phpRack_Result
  * @return void
  * @see phpRack_Package::__construct()
  */
 public function __construct(phpRack_Result $result)
 {
     parent::__construct($result);
     $this->_pear = new phpRack_Adapters_Pear();
 }
Beispiel #2
0
 /**
  * Call method, any one
  *
  * This magic method will be called when you're using any assertion and 
  * some method inside it, for example:
  * 
  * <code>
  * // inside your instance of phpRack_Test:
  * $this->assert->php->extensions->isLoaded('simplexml');
  * </code>
  *
  * The call in the example will lead you to this method, and will call
  * __call('simplexml', array()).
  *
  * @param string Name of the method to call
  * @param array Arguments to pass
  * @return mixed
  * @see PhpConfigurationTest::testPhpExtensionsExist isLoaded() reaches this point
  */
 public function __call($name, array $args)
 {
     return call_user_func_array(array(phpRack_Package::factory('simple', $this->_result), $name), $args);
 }
Beispiel #3
0
 /**
  * Construct the class
  *
  * @param phpRack_Result
  * @return void
  * @see phpRack_Package::__construct()
  */
 public function __construct(phpRack_Result $result)
 {
     parent::__construct($result);
     $this->_adapter = new phpRack_Adapters_Db_Mysql();
 }