/** * @dataProvider fixturesDataProvider * * @param string $file fixture file * @param \Jaguar\Dimension $ed expected dimension * @param type $em expected mime type * @param type $ee expected extension */ public function testAllImageGets($file, Dimension $ed, $em, $ee) { $if = new ImageFile($file); $this->assertTrue($if->getDimension()->equals($ed)); $this->assertEquals($em, $if->getMime()); $this->assertEquals($ee, $if->getExtension()); $this->assertEquals(sprintf('width="%s" height="%s"', $if->getWidth(), $if->getHeight()), $if->__toString()); }