[^"]+)"/ */ public function stepCreateTheme($theme) { if(!preg_match('/^[0-9a-zA-Z_-]+$/', $theme)) throw new \InvalidArgumentException("Bad theme '$theme'"); $this->requireDir(BASE_PATH . '/themes'); $this->requireDir(BASE_PATH . '/themes/' . $theme); $this->requireDir(BASE_PATH . '/themes/' . $theme . '/templates'); } /** * Create a template within a test theme * * @Given /^a template "(?