diff --git a/tests/Boilerplate/index.html b/tests/Boilerplate/index.html
index ea563a9..676e5ab 100644
--- a/tests/Boilerplate/index.html
+++ b/tests/Boilerplate/index.html
@@ -86,7 +86,7 @@
Test Background Image
-
+
diff --git a/tests/Middleware/DeferJavascriptTest.php b/tests/Middleware/DeferJavascriptTest.php
index 98cedd5..e5872fc 100644
--- a/tests/Middleware/DeferJavascriptTest.php
+++ b/tests/Middleware/DeferJavascriptTest.php
@@ -7,14 +7,15 @@
class DeferJavascriptTest extends TestCase
{
- public function test_defer_javascript()
+ public function testDeferJavascript()
{
$response = $this->middleware->handle($this->request, $this->getNext());
- $this->assertContains('Boilerplate/js/main.js" defer', $response->getContent());
- $this->assertNotContains('analytics.js" async defer defer', $response->getContent());
- $this->assertNotContains('analytics.js" async defer defer', $response->getContent());
- $this->assertNotContains('', $response->getContent());
+ $this->assertStringContainsString('Boilerplate/js/plugins.js" data-pagespeed-no-defer>', $response->getContent());
+
+ $this->assertStringNotContainsString('analytics.js" async defer defer>', $response->getContent());
+ $this->assertStringNotContainsString('