$this->assertEquals( $expectedResult, WebPHandler::extractMetadata( $this->tempFileName ) );
}
public function provideTestExtractMetaData() {
+ // @codingStandardsIgnoreStart Generic.Files.LineLength
return array(
// Files from https://developers.google.com/speed/webp/gallery2
array( "\x52\x49\x46\x46\x90\x68\x01\x00\x57\x45\x42\x50\x56\x50\x38\x4C\x83\x68\x01\x00\x2F\x8F\x01\x4B\x10\x8D\x38\x6C\xDB\x46\x92\xE0\xE0\x82\x7B\x6C",
array( 'RIFF1234WEBPVP8 ', false ),
array( 'RIFF1234WEBPVP8L ', false ),
);
+ // @codingStandardsIgnoreEnd
}
/**
}
public function provideTestWithFileExtractMetaData() {
return array(
- array( __DIR__ . '/../../data/media/2_webp_ll.webp',
- array( 'compression' => 'lossless', 'width' => 386, 'height' => 395 ) ),
- array( __DIR__ . '/../../data/media/2_webp_a.webp',
- array( 'compression' => 'lossy', 'animated' => false, 'transparency' => true, 'width' => 386, 'height' => 395 ) ),
+ array( __DIR__ . '/../../data/media/2_webp_ll.webp',
+ array(
+ 'compression' => 'lossless',
+ 'width' => 386,
+ 'height' => 395
+ )
+ ),
+ array( __DIR__ . '/../../data/media/2_webp_a.webp',
+ array(
+ 'compression' => 'lossy',
+ 'animated' => false,
+ 'transparency' => true,
+ 'width' => 386,
+ 'height' => 395
+ )
+ ),
);
}