File tree 2 files changed +5
-13
lines changed
2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function canUseTypedProperties(): bool
43
43
return version_compare ($ version , '7.4 ' , '>= ' );
44
44
}
45
45
46
- protected function getPhpVersion (): string
46
+ public function getPhpVersion (): string
47
47
{
48
48
$ rootDirectory = $ this ->fileManager ->getRootDirectory ();
49
49
Original file line number Diff line number Diff line change @@ -101,9 +101,9 @@ public function testFallBackToPhpVersionWithoutLockFile(): void
101
101
->method ('getFileContents ' )
102
102
;
103
103
104
- $ util = new PhpCompatUtilTestFixture ($ mockFileManager );
104
+ $ util = new PhpCompatUtil ($ mockFileManager );
105
105
106
- $ result = $ util ->getVersionForTest ();
106
+ $ result = $ util ->getPhpVersion ();
107
107
108
108
self ::assertSame (\PHP_VERSION , $ result );
109
109
}
@@ -133,9 +133,9 @@ public function testWithoutPlatformVersionSet(): void
133
133
->willReturn ($ json )
134
134
;
135
135
136
- $ util = new PhpCompatUtilTestFixture ($ mockFileManager );
136
+ $ util = new PhpCompatUtil ($ mockFileManager );
137
137
138
- $ result = $ util ->getVersionForTest ();
138
+ $ result = $ util ->getPhpVersion ();
139
139
140
140
self ::assertSame (\PHP_VERSION , $ result );
141
141
}
@@ -187,11 +187,3 @@ public function phpVersionForTypedPropertiesDataProvider(): \Generator
187
187
yield ['5.7 ' , false ];
188
188
}
189
189
}
190
-
191
- class PhpCompatUtilTestFixture extends PhpCompatUtil
192
- {
193
- public function getVersionForTest (): string
194
- {
195
- return $ this ->getPhpVersion ();
196
- }
197
- }
You can’t perform that action at this time.
0 commit comments