Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2750427
Jpeg2000HandlerTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1005 B
Referenced Files
None
Subscribers
None
Jpeg2000HandlerTest.php
View Options
<?php
/**
* @covers \Jpeg2000Handler
*/
class
Jpeg2000HandlerTest
extends
MediaWikiIntegrationTestCase
{
/**
* @dataProvider provideTestGetSizeAndMetadata
*/
public
function
testGetSizeAndMetadata
(
$path
,
$expectedResult
)
{
$handler
=
new
Jpeg2000Handler
();
$this
->
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__
,
[]
],
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jul 3, 16:27 (4 h, 1 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d7/89/de7694acebf0094c8f16413b9267
Default Alt Text
Jpeg2000HandlerTest.php (1005 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment