public function getPath() { $dir = 'TestCase/'; $path = defined('TESTS') ? TESTS . $dir : ROOT . DS . 'tests' . DS . $dir; if (isset($this->plugin)) { $path = $this->_pluginPath($this->plugin) . 'tests/' . $dir; } return $path; }