Example #1
0
 public function test_is_domain()
 {
     $cfg = \System\Settings::get('domains');
     foreach ($cfg as $key => $def) {
         $this->assertTrue(\System\Router::is_domain($key));
     }
     $this->assertFalse(\System\Router::is_domain('Stupid-Domain-Name'));
 }