1
1
<?php
2
+
2
3
namespace tests ;
3
4
4
5
use PHPUnit \Framework \TestCase ;
@@ -21,7 +22,7 @@ public function testCanAddFiles()
21
22
$ document2 = $ this ->getDocument2 ();
22
23
$ file = $ this ->getOutFile ();
23
24
24
- $ command = new Command ;
25
+ $ command = new Command () ;
25
26
$ this ->assertEquals (0 , $ command ->getFileCount ());
26
27
$ this ->assertInstanceOf ('mikehaertl\pdftk\Command ' , $ command ->addFile ($ document1 , 'A ' ));
27
28
$ this ->assertInstanceOf ('mikehaertl\pdftk\Command ' , $ command ->addFile ($ document2 , 'B ' , 'complex \'"password ' ));
@@ -37,7 +38,7 @@ public function testCanAddOptions()
37
38
$ document1 = $ this ->getDocument1 ();
38
39
$ file = $ this ->getOutFile ();
39
40
40
- $ command = new Command ;
41
+ $ command = new Command () ;
41
42
$ this ->assertInstanceOf ('mikehaertl\pdftk\Command ' , $ command ->addFile ($ document1 , 'A ' ));
42
43
$ this ->assertInstanceOf ('mikehaertl\pdftk\Command ' , $ command ->addOption ('encrypt_40bit ' ));
43
44
$ this ->assertInstanceOf ('mikehaertl\pdftk\Command ' , $ command ->addOption ('allow ' , 'Printing ' , false ));
@@ -53,7 +54,7 @@ public function testCanSetAndGetOperationAndArgument()
53
54
$ document1 = $ this ->getDocument1 ();
54
55
$ file = $ this ->getOutFile ();
55
56
56
- $ command = new Command ;
57
+ $ command = new Command () ;
57
58
$ this ->assertInstanceOf ('mikehaertl\pdftk\Command ' , $ command ->addFile ($ document1 , 'A ' ));
58
59
$ this ->assertInstanceOf ('mikehaertl\pdftk\Command ' , $ command ->setOperation ('cat ' ));
59
60
$ this ->assertInstanceOf ('mikehaertl\pdftk\Command ' , $ command ->setOperationArgument ('A ' ));
@@ -70,7 +71,7 @@ public function testCanAddPageRanges()
70
71
$ document1 = $ this ->getDocument1 ();
71
72
$ file = $ this ->getOutFile ();
72
73
73
- $ command = new Command ;
74
+ $ command = new Command () ;
74
75
$ this ->assertInstanceOf ('mikehaertl\pdftk\Command ' , $ command ->addFile ($ document1 , 'A ' ));
75
76
$ this ->assertInstanceOf ('mikehaertl\pdftk\Command ' , $ command ->setOperation ('cat ' ));
76
77
$ this ->assertInstanceOf ('mikehaertl\pdftk\Command ' , $ command ->addPageRange (1 ));
0 commit comments