assertEquals( $expectedResult, $handler->getSizeAndMetadata( new TrivialMediaHandlerState, $path ) ); } public static function provideTestGetSizeAndMetadata() { return [ [ __DIR__ . '/../../data/media/jpeg2000-lossless.jp2', [ 'width' => 100, 'height' => 100, 'bits' => 8, ] ], [ __DIR__ . '/../../data/media/jpeg2000-lossy.jp2', [ 'width' => 100, 'height' => 100, 'bits' => 8, ] ], [ __DIR__ . '/../../data/media/jpeg2000-alpha.jp2', [ 'width' => 100, 'height' => 100, 'bits' => 8, ] ], [ __DIR__ . '/../../data/media/jpeg2000-profile.jpf', [ 'width' => 100, 'height' => 100, 'bits' => 8, ] ], // Error cases [ __FILE__, [] ], ]; } }