function testAssertValidUrlWithException() { $urlVerification = new URLVerificationTestVersion3($this); $urlVerification->setReturnValue('isException', true); $urlVerification->expectNever('header'); $server = array(); $urlVerification->assertValidUrl($server); }
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); }