assertTrue($actual); } /** * @return void */ public function test_returns_false_when_file_extension_is_image_but_content_is_not(): void { $actual = isImage("", "png"); $this->assertFalse($actual); } /** * @return void */ public function test_returns_false_when_file_extension_is_not_image_but_content_is(): void { $file = file_get_contents(__DIR__ . '/fixtures/heimdall-icon-small.png'); $actual = isImage($file, 'php'); $this->assertFalse($actual); } }