@@ -346,9 +346,12 @@ public function testImageCopy(): void
346346 $ this ->handler ->save ($ this ->start . 'work/ci-logo. ' . $ type );
347347 $ this ->assertTrue ($ this ->root ->hasChild ('work/ci-logo. ' . $ type ));
348348
349+ /** @var vfsStreamFile $child */
350+ $ child = $ this ->root ->getChild ('work/ci-logo. ' . $ type );
351+
349352 $ this ->assertNotSame (
350353 file_get_contents ($ this ->origin . 'ci-logo. ' . $ type ),
351- $ this -> root -> getChild ( ' work/ci-logo. ' . $ type ) ->getContent (),
354+ $ child ->getContent (),
352355 );
353356 }
354357 }
@@ -380,9 +383,12 @@ public function testImageCompressionGetResource(): void
380383 $ this ->handler ->save ($ this ->start . 'work/ci-logo. ' . $ type );
381384 $ this ->assertTrue ($ this ->root ->hasChild ('work/ci-logo. ' . $ type ));
382385
386+ /** @var vfsStreamFile $child */
387+ $ child = $ this ->root ->getChild ('work/ci-logo. ' . $ type );
388+
383389 $ this ->assertNotSame (
384390 file_get_contents ($ this ->origin . 'ci-logo. ' . $ type ),
385- $ this -> root -> getChild ( ' work/ci-logo. ' . $ type ) ->getContent (),
391+ $ child ->getContent (),
386392 );
387393 }
388394 }
@@ -401,9 +407,12 @@ public function testImageCompressionWithResource(): void
401407
402408 $ this ->assertTrue ($ this ->root ->hasChild ('work/ci-logo. ' . $ type ));
403409
410+ /** @var vfsStreamFile $child */
411+ $ child = $ this ->root ->getChild ('work/ci-logo. ' . $ type );
412+
404413 $ this ->assertNotSame (
405414 file_get_contents ($ this ->origin . 'ci-logo. ' . $ type ),
406- $ this -> root -> getChild ( ' work/ci-logo. ' . $ type ) ->getContent (),
415+ $ child ->getContent (),
407416 );
408417 }
409418 }
0 commit comments