Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / psy / psysh / test / Exception / BreakExceptionTest.php
similarity index 70%
rename from vendor/psy/psysh/test/Psy/Test/Exception/BreakExceptionTest.php
rename to vendor/psy/psysh/test/Exception/BreakExceptionTest.php
index fb0949853d6ec240503c2efeb653b0d0ffeeae9e..a3333a644633526d3cae03860189330441ffab83 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.
@@ -12,7 +12,6 @@
 namespace Psy\Test\Exception;
 
 use Psy\Exception\BreakException;
-use Psy\Exception\Exception;
 
 class BreakExceptionTest extends \PHPUnit\Framework\TestCase
 {
@@ -20,8 +19,8 @@ class BreakExceptionTest extends \PHPUnit\Framework\TestCase
     {
         $e = new BreakException();
 
-        $this->assertTrue($e instanceof Exception);
-        $this->assertTrue($e instanceof BreakException);
+        $this->assertInstanceOf('Psy\Exception\Exception', $e);
+        $this->assertInstanceOf('Psy\Exception\BreakException', $e);
     }
 
     public function testMessage()
@@ -29,6 +28,6 @@ class BreakExceptionTest extends \PHPUnit\Framework\TestCase
         $e = new BreakException('foo');
 
         $this->assertContains('foo', $e->getMessage());
-        $this->assertEquals('foo', $e->getRawMessage());
+        $this->assertSame('foo', $e->getRawMessage());
     }
 }