Exemplo n.º 1
0
 public function testCheckEnv()
 {
     Asset::setDomain('http://cdn.domain.tld/');
     Asset::$environment = 'online';
     Asset::checkEnv();
     $this->assertEquals('http://cdn.domain.tld/', Asset::$domain);
     Asset::$environment = 'local';
     Asset::checkEnv();
     $this->assertEquals('/', Asset::$domain);
 }