@@ -46,7 +46,7 @@ public function testCanInstallComponent(): void
46
46
$ componentInstaller ->installComponent ($ kit , $ component , $ this ->tmpDir , false );
47
47
48
48
$ 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 )));
50
50
}
51
51
52
52
public function testShouldAskIfFileAlreadyExists (): void
@@ -66,7 +66,7 @@ public function testShouldAskIfFileAlreadyExists(): void
66
66
67
67
$ this ->assertSame (0 , $ askedCount );
68
68
$ 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 )));
70
70
71
71
$ componentInstaller ->installComponent ($ kit , $ component , $ this ->tmpDir , false );
72
72
$ this ->assertSame (1 , $ askedCount );
@@ -83,12 +83,12 @@ public function testCanInstallComponentIfForced(): void
83
83
$ componentInstaller ->installComponent ($ kit , $ component , $ this ->tmpDir , false );
84
84
85
85
$ 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 )));
87
87
88
88
$ componentInstaller ->installComponent ($ kit , $ component , $ this ->tmpDir , true );
89
89
90
90
$ 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 )));
92
92
}
93
93
94
94
public function testCanInstallComponentAndItsComponentDependencies (): void
@@ -119,7 +119,7 @@ public function testCanInstallComponentAndItsComponentDependencies(): void
119
119
120
120
foreach ($ expectedFiles as $ fileName => $ expectedFile ) {
121
121
$ 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 )));
123
123
}
124
124
}
125
125
0 commit comments