Ejemplo n.º 1
0
 /**
  * CCStorage::add tests
  */
 public function test_add()
 {
     CCStorage::add('cdn', CCROOT . 'cdn/', 'http://cdn01.clancats.com/');
     $this->assertTrue(strpos(CCStorage::path('path.txt', 'cdn'), 'cdn/path.txt') !== false);
     $this->assertEquals(CCStorage::url('path.txt', 'cdn'), 'http://cdn01.clancats.com/path.txt');
 }