File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 11
11
12
12
class PdfTest extends TestCase
13
13
{
14
- /**
15
- * @var string
16
- */
14
+ /** @var string */
17
15
protected $ testFile ;
18
16
19
17
public function setUp ()
20
18
{
21
19
parent ::setUp ();
22
20
23
21
$ this ->testFile = __DIR__ .'/files/test.pdf ' ;
22
+
24
23
$ this ->multipageTestFile = __DIR__ .'/files/multipage-test.pdf ' ;
25
24
}
26
25
@@ -59,16 +58,13 @@ public function it_will_correctly_return_the_number_of_pages_in_pdf_file()
59
58
/** @test */
60
59
public function it_will_accept_a_custom_specified_resolution ()
61
60
{
62
- $ pdf = new Pdf ($ this ->testFile );
63
-
64
- $ pdf ->setResolution (72 );
65
-
66
- $ image = $ pdf ->getImageData ('test.jpg ' )->getImageResolution ();
61
+ $ image = (new Pdf ($ this ->testFile ))
62
+ ->setResolution (72 )
63
+ ->getImageData ('test.jpg ' )
64
+ ->getImageResolution ();
67
65
68
66
$ this ->assertEquals ($ image ['x ' ], 72 );
69
67
$ this ->assertEquals ($ image ['y ' ], 72 );
70
- $ this ->assertNotEquals ($ image ['x ' ], 144 );
71
- $ this ->assertNotEquals ($ image ['y ' ], 144 );
72
68
}
73
69
74
70
/** @test */
@@ -103,7 +99,5 @@ public function it_can_accept_a_layer()
103
99
104
100
$ this ->assertEquals ($ image ['x ' ], 72 );
105
101
$ this ->assertEquals ($ image ['y ' ], 72 );
106
- $ this ->assertNotEquals ($ image ['x ' ], 144 );
107
- $ this ->assertNotEquals ($ image ['y ' ], 144 );
108
102
}
109
103
}
You can’t perform that action at this time.
0 commit comments