function __construct($file, $mimeType = null) { $message = "IconMedia::__construct - "; $message .= "All functionality related to assets has been deprecated."; trigger_error($message, E_USER_NOTICE); parent::__construct($file, $mimeType); }
function testInformation() { $file = $this->TestData->getFile('image-jpg.jpg'); $Media = new ImageMedia($file); $result = $Media->width(); $expected = 70; $this->assertEqual($result, $expected); $result = $Media->height(); $expected = 47; $this->assertEqual($result, $expected); $result = $Media->quality(); $expected = 1; $this->assertEqual($result, $expected); $result = $Media->ratio(); $expected = '3:2'; $this->assertEqual($result, $expected); $result = $Media->megapixel(); $expected = 0; $this->assertEqual($result, $expected); }