17 $file = $this->
dataFile( $filename );
19 $iPage->setFile( $file );
31 $reflection =
new ReflectionClass( $iPage );
32 $reflMethod = $reflection->getMethod(
'getDisplayWidthHeight' );
33 $reflMethod->setAccessible(
true );
35 $actual = $reflMethod->invoke( $iPage, $dim[0], $dim[1], $dim[2], $dim[3] );
36 $this->assertEquals( $actual, $expected );
42 [ 1024.0, 768.0, 600.0, 600.0 ],
46 [ 1024.0, 768.0, 1600.0, 600.0 ],
50 [ 1024.0, 768.0, 1024.0, 768.0 ],
54 [ 1024.0, 768.0, 800.0, 1000.0 ],
58 [ 1024.0, 768.0, 0, 1000 ],
62 [ 1024.0, 768.0, 2000, 0 ],
76 $reflection =
new ReflectionClass( $iPage );
77 $reflMethod = $reflection->getMethod(
'getThumbSizes' );
78 $reflMethod->setAccessible(
true );
80 $actual = $reflMethod->invoke( $iPage, 545, 700 );
81 $this->assertEquals(
count( $actual ), $expectedNumberThumbs );
86 [
'animated.gif', 2 ],
87 [
'Toll_Texas_1.svg', 1 ],
88 [
'80x60-Greyscale.xcf', 1 ],
89 [
'jpeg-comment-binary.jpg', 2 ],