diff --git a/tests/Whoops/Exception/InspectorTest.php b/tests/Whoops/Exception/InspectorTest.php
index <HASH>..<HASH> 100644
--- a/tests/Whoops/Exception/InspectorTest.php
+++ b/tests/Whoops/Exception/InspectorTest.php
@@ -45,6 +45,19 @@ class InspectorTest extends TestCase
     }
 
     /**
+     * @covers Whoops\Exception\Inspector::getFrames
+     */
+    public function testDoesNotFailOnPHP7ErrorObject()
+    {
+        if (class_exists('Error')) {
+            $inner = new \Error('inner');
+            $outer = $this->getException('outer', 0, $inner);
+            $inspector = $this->getInspectorInstance($outer);
+            $frames = $inspector->getFrames();
+            $this->assertSame($outer->getLine(), $frames[0]->getLine());
+        }
+    }
+    /**
      * @covers Whoops\Exception\Inspector::getExceptionName
      */
     public function testReturnsCorrectExceptionName()
Add unit test, fails on PHP7 if Inspector::getTrace() requires Exception instead of also allowing Error