Commit c6d2dc4c authored by Nicolas Widart's avatar Nicolas Widart

Adding test for image detection

parent beea73de
......@@ -76,4 +76,16 @@ class ImagyTest extends BaseTestCase
$this->assertEquals($expected, $path);
}
/** @test */
public function it_should_detect_an_image()
{
$jpg = $this->imagy->isImage('image.jpg');
$png = $this->imagy->isImage('image.jpg');
$pdf = $this->imagy->isImage('pdf.pdf');
$this->assertTrue($jpg);
$this->assertTrue($png);
$this->assertFalse($pdf);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment