@@ -86,19 +86,19 @@ public function testDescriptorsTestDirIso(): void
86
86
$ this ->assertSame ('CDROM ' , $ primaryVolumeDescriptor ->volumeId );
87
87
$ this ->assertSame (198 , $ primaryVolumeDescriptor ->volumeSpaceSize );
88
88
$ this ->assertSame ('GENISOIMAGE ISO 9660/HFS FILESYSTEM CREATOR (C) 1993 E.YOUNGDALE (C) 1997-2006 J.PEARSON/J.SCHILLING (C) 2006-2007 CDRKIT TEAM ' , $ primaryVolumeDescriptor ->appId );
89
- $ this ->assertNotNull ( $ primaryVolumeDescriptor ->creationDate );
89
+ $ this ->assertInstanceOf (Carbon::class, $ primaryVolumeDescriptor ->creationDate );
90
90
$ this ->assertSame (Carbon::create (2025 , 1 , 15 , 9 , 41 , 36 , 'Europe/Paris ' )?->toDateTimeString(), $ primaryVolumeDescriptor ->creationDate ->toDateTimeString ());
91
- $ this ->assertNotNull ( $ primaryVolumeDescriptor ->modificationDate );
91
+ $ this ->assertInstanceOf (Carbon::class, $ primaryVolumeDescriptor ->modificationDate );
92
92
$ this ->assertSame (Carbon::create (2025 , 1 , 15 , 9 , 41 , 36 , 'Europe/Paris ' )?->toDateTimeString(), $ primaryVolumeDescriptor ->modificationDate ->toDateTimeString ());
93
- $ this ->assertNull ( $ primaryVolumeDescriptor ->expirationDate );
94
- $ this ->assertNotNull ( $ primaryVolumeDescriptor ->effectiveDate );
93
+ $ this ->assertNotInstanceOf (Carbon::class, $ primaryVolumeDescriptor ->expirationDate );
94
+ $ this ->assertInstanceOf (Carbon::class, $ primaryVolumeDescriptor ->effectiveDate );
95
95
$ this ->assertSame (Carbon::create (2025 , 1 , 15 , 9 , 41 , 36 , 'Europe/Paris ' )?->toDateTimeString(), $ primaryVolumeDescriptor ->effectiveDate ->toDateTimeString ());
96
96
97
97
// check root directory
98
98
$ rootDirectory = $ primaryVolumeDescriptor ->rootDirectory ;
99
99
$ this ->assertSame ('. ' , $ rootDirectory ->fileId );
100
100
$ this ->assertTrue ($ rootDirectory ->isDirectory ());
101
- $ this ->assertNotNull ( $ rootDirectory ->recordingDate );
101
+ $ this ->assertInstanceOf (Carbon::class, $ rootDirectory ->recordingDate );
102
102
$ this ->assertSame (Carbon::create (2025 , 1 , 15 , 9 , 41 , 9 , 'Europe/Paris ' )?->toDateTimeString(), $ rootDirectory ->recordingDate ->toDateTimeString ());
103
103
104
104
// check path table
@@ -182,19 +182,19 @@ public function testDescriptorsSubdirIso(): void
182
182
$ this ->assertSame ('CDROM ' , $ primaryVolumeDescriptor ->volumeId );
183
183
$ this ->assertSame (181 , $ primaryVolumeDescriptor ->volumeSpaceSize );
184
184
$ this ->assertSame ('GENISOIMAGE ISO 9660/HFS FILESYSTEM CREATOR (C) 1993 E.YOUNGDALE (C) 1997-2006 J.PEARSON/J.SCHILLING (C) 2006-2007 CDRKIT TEAM ' , $ primaryVolumeDescriptor ->appId );
185
- $ this ->assertNotNull ( $ primaryVolumeDescriptor ->creationDate );
185
+ $ this ->assertInstanceOf (Carbon::class, $ primaryVolumeDescriptor ->creationDate );
186
186
$ this ->assertSame (Carbon::create (2025 , 1 , 15 , 16 , 7 , 41 , 'Europe/Paris ' )?->toDateTimeString(), $ primaryVolumeDescriptor ->creationDate ->toDateTimeString ());
187
- $ this ->assertNotNull ( $ primaryVolumeDescriptor ->modificationDate );
187
+ $ this ->assertInstanceOf (Carbon::class, $ primaryVolumeDescriptor ->modificationDate );
188
188
$ this ->assertSame (Carbon::create (2025 , 1 , 15 , 16 , 7 , 41 , 'Europe/Paris ' )?->toDateTimeString(), $ primaryVolumeDescriptor ->modificationDate ->toDateTimeString ());
189
- $ this ->assertNull ( $ primaryVolumeDescriptor ->expirationDate );
190
- $ this ->assertNotNull ( $ primaryVolumeDescriptor ->effectiveDate );
189
+ $ this ->assertNotInstanceOf (Carbon::class, $ primaryVolumeDescriptor ->expirationDate );
190
+ $ this ->assertInstanceOf (Carbon::class, $ primaryVolumeDescriptor ->effectiveDate );
191
191
$ this ->assertSame (Carbon::create (2025 , 1 , 15 , 16 , 7 , 41 , 'Europe/Paris ' )?->toDateTimeString(), $ primaryVolumeDescriptor ->effectiveDate ->toDateTimeString ());
192
192
193
193
// check root directory
194
194
$ rootDirectory = $ primaryVolumeDescriptor ->rootDirectory ;
195
195
$ this ->assertSame ('. ' , $ rootDirectory ->fileId );
196
196
$ this ->assertTrue ($ rootDirectory ->isDirectory ());
197
- $ this ->assertNotNull ( $ rootDirectory ->recordingDate );
197
+ $ this ->assertInstanceOf (Carbon::class, $ rootDirectory ->recordingDate );
198
198
$ this ->assertSame (Carbon::create (2025 , 1 , 15 , 16 , 7 , 30 , 'Europe/Paris ' )?->toDateTimeString(), $ rootDirectory ->recordingDate ->toDateTimeString ());
199
199
200
200
// check path table
@@ -284,10 +284,10 @@ public function testDescriptorsDosIso(): void
284
284
$ this ->assertSame ('DOS4.01 ' , $ primaryVolumeDescriptor ->volumeId );
285
285
$ this ->assertSame (848 , $ primaryVolumeDescriptor ->volumeSpaceSize );
286
286
$ this ->assertSame ('' , $ primaryVolumeDescriptor ->appId );
287
- $ this ->assertNull ( $ primaryVolumeDescriptor ->creationDate );
288
- $ this ->assertNull ( $ primaryVolumeDescriptor ->modificationDate );
289
- $ this ->assertNull ( $ primaryVolumeDescriptor ->expirationDate );
290
- $ this ->assertNull ( $ primaryVolumeDescriptor ->effectiveDate );
287
+ $ this ->assertNotInstanceOf (Carbon::class, $ primaryVolumeDescriptor ->creationDate );
288
+ $ this ->assertNotInstanceOf (Carbon::class, $ primaryVolumeDescriptor ->modificationDate );
289
+ $ this ->assertNotInstanceOf (Carbon::class, $ primaryVolumeDescriptor ->expirationDate );
290
+ $ this ->assertNotInstanceOf (Carbon::class, $ primaryVolumeDescriptor ->effectiveDate );
291
291
292
292
/** @var Boot $bootDescriptor */
293
293
$ bootDescriptor = $ isoFile ->descriptors [Type::BOOT_RECORD_DESC ];
@@ -312,10 +312,10 @@ public function testDescriptorsDosIso(): void
312
312
$ this ->assertSame (848 , $ supplementaryVolumeDescriptor ->volumeSpaceSize );
313
313
$ this ->assertSame ('' , $ supplementaryVolumeDescriptor ->appId );
314
314
$ this ->assertSame (3 , $ supplementaryVolumeDescriptor ->jolietLevel );
315
- $ this ->assertNull ( $ supplementaryVolumeDescriptor ->creationDate );
316
- $ this ->assertNull ( $ supplementaryVolumeDescriptor ->modificationDate );
317
- $ this ->assertNull ( $ supplementaryVolumeDescriptor ->expirationDate );
318
- $ this ->assertNull ( $ supplementaryVolumeDescriptor ->effectiveDate );
315
+ $ this ->assertNotInstanceOf (Carbon::class, $ supplementaryVolumeDescriptor ->creationDate );
316
+ $ this ->assertNotInstanceOf (Carbon::class, $ supplementaryVolumeDescriptor ->modificationDate );
317
+ $ this ->assertNotInstanceOf (Carbon::class, $ supplementaryVolumeDescriptor ->expirationDate );
318
+ $ this ->assertNotInstanceOf (Carbon::class, $ supplementaryVolumeDescriptor ->effectiveDate );
319
319
}
320
320
321
321
public function testDescriptorsIso9660HfsPartIso (): void
0 commit comments