/** * Creates test with injected WP facade * @param mixed $key * @return WpTesting_Model_Test */ protected function createTest($key = null) { $test = new WpTesting_Model_Test($key); return $test->setWp($this->wp); }