From 777f8dfddc49a7e848c858ad33cc0e7ef24ed027 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Sat, 21 Dec 2024 17:21:56 +0100 Subject: [PATCH] Assert that the fixture CSS file is readable --- tests/Css/ProcessorTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Css/ProcessorTest.php b/tests/Css/ProcessorTest.php index 6d9e1f9..fec088e 100644 --- a/tests/Css/ProcessorTest.php +++ b/tests/Css/ProcessorTest.php @@ -94,7 +94,9 @@ public function testCssWithMediaQueries(): void public function testCssWithBigMediaQueries(): void { - $rules = $this->processor->getRules(file_get_contents(__DIR__.'/test.css')); + $css = file_get_contents(__DIR__.'/test.css'); + $this->assertIsString($css, 'The fixture CSS file should be readable.'); + $rules = $this->processor->getRules($css); $this->assertCount(414, $rules); }