Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / psy / psysh / test / Exception / RuntimeExceptionTest.php
similarity index 56%
rename from vendor/psy/psysh/test/Psy/Test/Exception/RuntimeExceptionTest.php
rename to vendor/psy/psysh/test/Exception/RuntimeExceptionTest.php
index 8eca1348782db85bc12207ff7dd135b9ddf0d62c..1121ea4e5b0ab203e6706ea95722362b074a8f00 100644 (file)
@@ -3,7 +3,7 @@
 /*
  * This file is part of Psy Shell.
  *
- * (c) 2012-2017 Justin Hileman
+ * (c) 2012-2018 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
@@ -11,7 +11,6 @@
 
 namespace Psy\Test\Exception;
 
-use Psy\Exception\Exception;
 use Psy\Exception\RuntimeException;
 
 class RuntimeExceptionTest extends \PHPUnit\Framework\TestCase
@@ -21,11 +20,11 @@ class RuntimeExceptionTest extends \PHPUnit\Framework\TestCase
         $msg = 'bananas';
         $e   = new RuntimeException($msg);
 
-        $this->assertTrue($e instanceof Exception);
-        $this->assertTrue($e instanceof \RuntimeException);
-        $this->assertTrue($e instanceof RuntimeException);
+        $this->assertInstanceOf('Psy\Exception\Exception', $e);
+        $this->assertInstanceOf('RuntimeException', $e);
+        $this->assertInstanceOf('Psy\Exception\RuntimeException', $e);
 
-        $this->assertEquals($msg, $e->getMessage());
-        $this->assertEquals($msg, $e->getRawMessage());
+        $this->assertSame($msg, $e->getMessage());
+        $this->assertSame($msg, $e->getRawMessage());
     }
 }