function testAssertValidUrlWithException()
 {
     $urlVerification = new URLVerificationTestVersion3($this);
     $urlVerification->setReturnValue('isException', true);
     $urlVerification->expectNever('header');
     $server = array();
     $urlVerification->assertValidUrl($server);
 }
示例#2
0
 function testAssertValidUrlWithRedirection()
 {
     $urlVerification = new URLVerificationTestVersion3($this);
     $urlVerification->setReturnValue('isException', false);
     $urlVerification->setReturnValue('getUrlChunks', array('protocol' => 'https', 'host' => 'secure.codendi.org'));
     $urlVerification->expectOnce('header');
     $server = array();
     $urlVerification->assertValidUrl($server);
 }