Example #1
0
 /**
  * Tests that the allow_external flag prevents an external request.
  *
  * @return null
  */
 public function test_disable_external_tests()
 {
     $this->setEnvironment(array('Request::$initial' => NULL));
     $request = new Request('http://www.google.com/', array(), FALSE);
     $this->assertEquals(FALSE, $request->is_external());
 }