diff --git a/test/Client/StaticTest.php b/test/Client/StaticTest.php index 092ee9ec99..15c99c725c 100755 --- a/test/Client/StaticTest.php +++ b/test/Client/StaticTest.php @@ -484,11 +484,9 @@ public function testOpenTempStreamWithValidFileDoesntThrowsException() 'outputstream' => realpath(__DIR__ . '/_files/zend_http_client_stream.file'), ); $client = new HTTPClient($url, $config); - try { - $result = $client->send(); - } catch (Http\Exception\ExceptionInterface $e) { - $this->fail('Unexpected exception was thrown: ' . $e->getMessage() . "\n" . $e->getTraceAsString()); - } + + $result = $client->send(); + // we can safely return until we can verify link is still active // @todo verify link is still active return; diff --git a/test/ClientTest.php b/test/ClientTest.php index 40ece12c76..71d014e491 100644 --- a/test/ClientTest.php +++ b/test/ClientTest.php @@ -17,15 +17,10 @@ public function testClientRetrievesUppercaseHttpMethodFromRequestObject() public function testIfZeroValueCookiesCanBeSet() { - try { - $client = new Client(); - $client->addCookie("test", 0); - $client->addCookie("test2", "0"); - $client->addCookie("test3", false); - } catch (Exception\InvalidArgumentException $e) { - $this->fail('Zero Values should be valid'); - } - $this->assertTrue(true); + $client = new Client(); + $client->addCookie("test", 0); + $client->addCookie("test2", "0"); + $client->addCookie("test3", false); } /**