@@ -46,7 +46,7 @@ public function testCanInstallComponent(): void
4646 $ componentInstaller ->installComponent ($ kit , $ component , $ this ->tmpDir , false );
4747
4848 $ this ->assertFileExists ($ this ->tmpDir .'/Button.html.twig ' );
49- $ this ->assertSame ($ this -> filesystem -> readFile ($ this ->tmpDir .'/Button.html.twig ' ), $ this -> filesystem -> readFile (\sprintf ('%s/templates/components/Button.html.twig ' , $ kit ->path )));
49+ $ this ->assertSame (file_get_contents ($ this ->tmpDir .'/Button.html.twig ' ), file_get_contents (\sprintf ('%s/templates/components/Button.html.twig ' , $ kit ->path )));
5050 }
5151
5252 public function testShouldAskIfFileAlreadyExists (): void
@@ -66,7 +66,7 @@ public function testShouldAskIfFileAlreadyExists(): void
6666
6767 $ this ->assertSame (0 , $ askedCount );
6868 $ this ->assertFileExists ($ this ->tmpDir .'/Button.html.twig ' );
69- $ this ->assertSame ($ this -> filesystem -> readFile ($ this ->tmpDir .'/Button.html.twig ' ), $ this -> filesystem -> readFile (\sprintf ('%s/templates/components/Button.html.twig ' , $ kit ->path )));
69+ $ this ->assertSame (file_get_contents ($ this ->tmpDir .'/Button.html.twig ' ), file_get_contents (\sprintf ('%s/templates/components/Button.html.twig ' , $ kit ->path )));
7070
7171 $ componentInstaller ->installComponent ($ kit , $ component , $ this ->tmpDir , false );
7272 $ this ->assertSame (1 , $ askedCount );
@@ -83,12 +83,12 @@ public function testCanInstallComponentIfForced(): void
8383 $ componentInstaller ->installComponent ($ kit , $ component , $ this ->tmpDir , false );
8484
8585 $ this ->assertFileExists ($ this ->tmpDir .'/Button.html.twig ' );
86- $ this ->assertSame ($ this -> filesystem -> readFile ($ this ->tmpDir .'/Button.html.twig ' ), $ this -> filesystem -> readFile (\sprintf ('%s/templates/components/Button.html.twig ' , $ kit ->path )));
86+ $ this ->assertSame (file_get_contents ($ this ->tmpDir .'/Button.html.twig ' ), file_get_contents (\sprintf ('%s/templates/components/Button.html.twig ' , $ kit ->path )));
8787
8888 $ componentInstaller ->installComponent ($ kit , $ component , $ this ->tmpDir , true );
8989
9090 $ this ->assertFileExists ($ this ->tmpDir .'/Button.html.twig ' );
91- $ this ->assertSame ($ this -> filesystem -> readFile ($ this ->tmpDir .'/Button.html.twig ' ), $ this -> filesystem -> readFile (\sprintf ('%s/templates/components/Button.html.twig ' , $ kit ->path )));
91+ $ this ->assertSame (file_get_contents ($ this ->tmpDir .'/Button.html.twig ' ), file_get_contents (\sprintf ('%s/templates/components/Button.html.twig ' , $ kit ->path )));
9292 }
9393
9494 public function testCanInstallComponentAndItsComponentDependencies (): void
@@ -119,7 +119,7 @@ public function testCanInstallComponentAndItsComponentDependencies(): void
119119
120120 foreach ($ expectedFiles as $ fileName => $ expectedFile ) {
121121 $ this ->assertFileExists ($ expectedFile );
122- $ this ->assertSame ($ this -> filesystem -> readFile ($ expectedFile ), $ this -> filesystem -> readFile (\sprintf ('%s/templates/components/%s ' , $ kit ->path , $ fileName )));
122+ $ this ->assertSame (file_get_contents ($ expectedFile ), file_get_contents (\sprintf ('%s/templates/components/%s ' , $ kit ->path , $ fileName )));
123123 }
124124 }
125125
0 commit comments