@@ -72,14 +72,14 @@ protected function tearDown(): void
7272 public function testPdfCountPages (): void
7373 {
7474 $ inputObj = new PathInput (TestingUtilities::getFileTypesDir () . "/pdf/multipage.pdf " );
75- self ::assertSame (12 , $ inputObj ->getPageCount () );
75+ self ::assertSame (12 , $ inputObj ->pageCount );
7676 }
7777
7878 public function testPdfReconstructOK (): void
7979 {
8080 $ inputObj = new PathInput (TestingUtilities::getFileTypesDir () . "/pdf/multipage.pdf " );
8181 $ inputObj ->applyPageOptions (new PageOptions ([0 , 1 , 2 , 3 , 4 ], KEEP_ONLY , 2 ));
82- self ::assertSame (5 , $ inputObj ->getPageCount () );
82+ self ::assertSame (5 , $ inputObj ->pageCount );
8383 }
8484
8585 public function testPdfReadContents (): void
@@ -105,7 +105,7 @@ public function testPdfCutNPages(array $indexes): void
105105 $ pageCountBasePdf = $ basePdf ->setSourceFile ($ inputObj ->fileObject ->getFilename ());
106106 $ basePdf ->Close ();
107107 $ cutPdf ->Close ();
108- self ::assertSame (count ($ indexes ), $ inputObj ->getPageCount () );
108+ self ::assertSame (count ($ indexes ), $ inputObj ->pageCount );
109109 self ::assertSame ($ pageCountCutPdf , $ pageCountBasePdf );
110110
111111 $ basePdf = new Fpdi ();
@@ -138,36 +138,36 @@ public function testPdfKeep5FirstPages(): void
138138 {
139139 $ inputObj = new PathInput (TestingUtilities::getFileTypesDir () . "/pdf/multipage.pdf " );
140140 $ inputObj ->applyPageOptions (new PageOptions ([0 , 1 , 2 , 3 , 4 ], KEEP_ONLY , 2 ));
141- self ::assertSame (5 , $ inputObj ->getPageCount () );
141+ self ::assertSame (5 , $ inputObj ->pageCount );
142142 }
143143
144144 public function testPdfKeepInvalidPages (): void
145145 {
146146 $ inputObj = new PathInput (TestingUtilities::getFileTypesDir () . "/pdf/multipage.pdf " );
147147 $ inputObj ->applyPageOptions (new PageOptions ([0 , 1 , 17 ], KEEP_ONLY , 2 ));
148- self ::assertSame (2 , $ inputObj ->getPageCount () );
148+ self ::assertSame (2 , $ inputObj ->pageCount );
149149 }
150150
151151 public function testPdfRemove5LastPages (): void
152152 {
153153
154154 $ inputObj = new PathInput (TestingUtilities::getFileTypesDir () . "/pdf/multipage.pdf " );
155155 $ inputObj ->applyPageOptions (new PageOptions ([-5 , -4 , -3 , -2 , -1 ], REMOVE , 2 ));
156- self ::assertSame (7 , $ inputObj ->getPageCount () );
156+ self ::assertSame (7 , $ inputObj ->pageCount );
157157 }
158158
159159 public function testPdfRemove5FirstPages (): void
160160 {
161161 $ inputObj = new PathInput (TestingUtilities::getFileTypesDir () . "/pdf/multipage.pdf " );
162162 $ inputObj ->applyPageOptions (new PageOptions ([0 , 1 , 2 , 3 , 4 ], REMOVE , 2 ));
163- self ::assertSame (7 , $ inputObj ->getPageCount () );
163+ self ::assertSame (7 , $ inputObj ->pageCount );
164164 }
165165
166166 public function testPdfRemoveInvalidPages (): void
167167 {
168168 $ inputObj = new PathInput (TestingUtilities::getFileTypesDir () . "/pdf/multipage.pdf " );
169169 $ inputObj ->applyPageOptions (new PageOptions ([16 ], REMOVE , 2 ));
170- self ::assertSame (12 , $ inputObj ->getPageCount () );
170+ self ::assertSame (12 , $ inputObj ->pageCount );
171171 }
172172
173173 public function testPdfKeepNoPages (): void
@@ -181,7 +181,7 @@ public function testPdfRemoveAllPages(): void
181181 {
182182 $ inputObj = new PathInput (TestingUtilities::getFileTypesDir () . "/pdf/multipage.pdf " );
183183 $ this ->expectException (MindeePdfException::class);
184- $ pageOptions = new PageOptions (range (0 , $ inputObj ->getPageCount () - 1 ), REMOVE , 2 );
184+ $ pageOptions = new PageOptions (range (0 , $ inputObj ->pageCount - 1 ), REMOVE , 2 );
185185 $ inputObj ->applyPageOptions (pageOptions: $ pageOptions );
186186 }
187187
0 commit comments