diff --git a/tests/Basic/StatusCodeTest.php b/tests/Basic/StatusCodeTest.php
index <HASH>..<HASH> 100644
--- a/tests/Basic/StatusCodeTest.php
+++ b/tests/Basic/StatusCodeTest.php
@@ -17,6 +17,6 @@ class StatusCodeTest extends TestCase
 
         $this->assertEquals($this->pathTo('/404.php'), $this->getSession()->getCurrentUrl());
         $this->assertEquals(404, $this->getSession()->getStatusCode());
-        $this->assertEquals('Sorry, page not found', $this->getSession()->getPage()->getContent());
+        $this->assertContains('Sorry, page not found', $this->getSession()->getPage()->getContent());
     }
 }
Be less strict on the assertion for the <I> page

The PhantomJS driver does not play well with non-HTML content. And being a
browser abstraction, we cannot really complain there. The <I>.php page does
not send HTML content but plaintext. But asserting that it contains the text
is enough for the tested feature.