17 $file = $this->
dataFile( $filename );
19 $iPage->setFile( $file );
30 $reflection =
new ReflectionClass( $iPage );
31 $reflMethod = $reflection->getMethod(
'getDisplayWidthHeight' );
32 $reflMethod->setAccessible(
true );
34 $actual = $reflMethod->invoke( $iPage, $dim[0], $dim[1], $dim[2], $dim[3] );
35 $this->assertEquals( $actual, $expected );
41 [ 1024.0, 768.0, 600.0, 600.0 ],
45 [ 1024.0, 768.0, 1600.0, 600.0 ],
49 [ 1024.0, 768.0, 1024.0, 768.0 ],
53 [ 1024.0, 768.0, 800.0, 1000.0 ],
57 [ 1024.0, 768.0, 0, 1000 ],
61 [ 1024.0, 768.0, 2000, 0 ],
74 $reflection =
new ReflectionClass( $iPage );
75 $reflMethod = $reflection->getMethod(
'getThumbSizes' );
76 $reflMethod->setAccessible(
true );
78 $actual = $reflMethod->invoke( $iPage, 545, 700 );
79 $this->assertEquals(
count( $actual ), $expectedNumberThumbs );
84 [
'animated.gif', 2 ],
85 [
'Toll_Texas_1.svg', 1 ],
86 [
'80x60-Greyscale.xcf', 1 ],
87 [
'jpeg-comment-binary.jpg', 2 ],