Skip to content

Commit 89896d9

Browse files
committed
update tests
1 parent d755b69 commit 89896d9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/AddHttp2ServerPushTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ public function it_will_return_limit_count_of_links()
101101

102102
$response = $this->middleware->handle($request, $this->getNext('pageWithImages'), $limit);
103103

104-
$count = preg_match_all('/(?:\<.*?\>\;\srel\=preload\;\sas\=[a-zA-Z]+\,?)/', $response->headers->get('link'));
105-
106-
$this->assertEquals($limit, $count);
104+
$this->assertCount($limit, explode(",", $response->headers->get('link')));
107105
}
108106

109107
/**

0 commit comments

Comments
 (0)