/** * @brief figure out what sort of test is being called and set up * * Depending on what type of test is being run, a specific test method is * called to set up anything that might need setting up for that tests. * * see the related methods ::model() ::behavior() ::datasource() * ::controller() ::component() ::helper() * @param <type> $testObject * @return <type> */ public function __construct($testObject) { EventCore::activatePlugins(App::objects('plugin'), true); $this->__testObject = $testObject; //$this->__testObject->_initDb(); $this->__testObject->db->_queriesLogMax = 1000; $this->__testObject->setup = isset($this->__testObject->setup) ? array_merge_recursive($this->__setup, $this->__testObject->setup) : $this->__setup; $this->__testObject->setup['type'] = empty($this->__testObject->setup['type']) ? $this->__testType() : $this->__testObject->setup['type']; return true; if (is_callable(array($this, $this->__testObject->setup['type']))) { //$this->{$this->__testObject->setup['type']}($this->__testObject->setup[$this->__testObject->setup['type']]); } return true; }