Browse Source

Skipping a test in HHVM as SSL is not implemented for sockets
Weakening one of the assertions as HHVM does not return the same exception
for badly constructed translation messages

Jose Lorenzo Rodriguez 11 years ago
parent
commit
346296beca

+ 2 - 1
tests/TestCase/I18n/Formatter/IcuFormatterTest.php

@@ -95,7 +95,8 @@ class IcuFormatterTest extends TestCase
     /**
      * Tests that passing a message in the wrong format will throw an exception
      *
-     * @expectedException \Aura\Intl\Exception\CannotInstantiateFormatter
+     * @expectedException Exception
+     * @expectedExceptionMessage msgfmt_create: message formatter
      * @return void
      */
     public function testBadMessageFormat()

+ 4 - 1
tests/TestCase/Network/SocketTest.php

@@ -392,7 +392,10 @@ class SocketTest extends TestCase
      */
     public function testGetContext()
     {
-        $this->skipIf(!extension_loaded('openssl'), 'OpenSSL is not enabled cannot test SSL.');
+        $this->skipIf(
+            !extension_loaded('openssl') || defined('HHVM_VERSION'),
+            'OpenSSL is not enabled cannot test SSL.'
+        );
         $config = [
             'host' => 'smtp.gmail.com',
             'port' => 465,