예제 #1
0
 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));
 }
예제 #2
0
 public function testContentRelative()
 {
     $this->assertNull(Clips\content_relative('NotExists.php', $this));
     $this->assertNotNull(Clips\content_relative('WebHelpersTest.php', $this));
 }