public function init() { $class = explode('\\', get_class($this)); $class = array_pop($class); // The last one $class = \Clips\to_flat(str_replace('Migration', '', $class)); $this->tool =& \Clips\get_clips_tool(); $this->template = $this->tool->library('MigrationTool'); $this->config = Yaml::parse(\Clips\content_relative('schemas/' . $class . '.yml', $this)); }
public function testContentRelative() { $this->assertNull(Clips\content_relative('NotExists.php', $this)); $this->assertNotNull(Clips\content_relative('WebHelpersTest.php', $this)); }