Ejemplo n.º 1
0
 /**
  * initialize the ship
  * 
  * @return void
  */
 public function wake()
 {
     if (!\ClanCats::in_development()) {
         return;
     }
     // get all controllers in the dev namespace
     foreach (\CCFile::ls(\CCPath::controllers('Dev::*Controller' . EXT)) as $path) {
         $name = \CCStr::cut(basename($path), 'Controller' . EXT);
         \CCRouter::on('dev/' . \CCStr::lower($name), 'Dev::' . $name);
     }
 }
Ejemplo n.º 2
0
 /**
  * test string replacements
  */
 public function testLower()
 {
     $this->assertEquals(CCStr::lower('HELLÖ WÜRLD'), 'hellö würld');
 }