@@ -20,7 +20,7 @@ class CopyFilesTaskIntegrationTest extends \PHPUnit\Framework\TestCase
2020 public function copyFileDataProvider (): Generator
2121 {
2222 yield 'copy file ' => [
23- 'target ' => 'testCopyFile ' ,
23+ 'target ' => 'copy-file ' ,
2424 'sourceFileName ' => '/foo ' ,
2525 'targetFileName ' => '/foo-copy ' ,
2626 'existingSourceFileContents ' => 'FOO ' ,
@@ -31,7 +31,7 @@ public function copyFileDataProvider(): Generator
3131 ];
3232
3333 yield 'copy file with absolute path ' => [
34- 'target ' => 'testCopyFileWithAbsolutePath ' ,
34+ 'target ' => 'copy-file-with-absolute-path ' ,
3535 'sourceFileName ' => '/foo ' ,
3636 'targetFileName ' => '/foo-copy ' ,
3737 'existingSourceFileContents ' => 'FOO ' ,
@@ -42,7 +42,7 @@ public function copyFileDataProvider(): Generator
4242 ];
4343
4444 yield 'target file exists ' => [
45- 'target ' => 'testTargetFileExists ' ,
45+ 'target ' => 'target-file-exists ' ,
4646 'sourceFileName ' => '/new ' ,
4747 'targetFileName ' => '/existing ' ,
4848 'existingSourceFileContents ' => 'NEW ' ,
@@ -53,7 +53,7 @@ public function copyFileDataProvider(): Generator
5353 ];
5454
5555 yield 'target file exists skip ' => [
56- 'target ' => 'testTargetFileExistsSkip ' ,
56+ 'target ' => 'target-file-exists-skip ' ,
5757 'sourceFileName ' => '/new ' ,
5858 'targetFileName ' => '/existing ' ,
5959 'existingSourceFileContents ' => 'NEW ' ,
@@ -64,7 +64,7 @@ public function copyFileDataProvider(): Generator
6464 ];
6565
6666 yield 'target file exists replace ' => [
67- 'target ' => 'testTargetFileExistsReplace ' ,
67+ 'target ' => 'target-file-exists-replace ' ,
6868 'sourceFileName ' => '/new ' ,
6969 'targetFileName ' => '/existing ' ,
7070 'existingSourceFileContents ' => 'NEW ' ,
@@ -126,7 +126,7 @@ public function testTargetFileExistsFail(): void
126126 file_put_contents ($ targetFilePath , 'EXISTING ' );
127127
128128 $ tester = new PhingTester (__DIR__ . '/copy-files-task-integration-test.xml ' , self ::TEMP_DIRECTORY_PATH );
129- $ target = __FUNCTION__ ;
129+ $ target = ' target-file-exists-fail ' ;
130130
131131 $ tester ->expectFailedBuild ($ target );
132132
@@ -151,7 +151,7 @@ public function testCopyMultipleFiles(): void
151151 }
152152
153153 $ tester = new PhingTester (__DIR__ . '/copy-files-task-integration-test.xml ' , self ::TEMP_DIRECTORY_PATH );
154- $ target = __FUNCTION__ ;
154+ $ target = ' copy-multiple-files ' ;
155155 $ tester ->executeTarget ($ target );
156156
157157 Assert::assertFileEquals ($ sourceFooFilePath , $ targetFooFilePath );
@@ -173,7 +173,7 @@ public function testReplaceMultipleFilesWithExistingTargets(): void
173173 file_put_contents ($ targetBarFilePath , 'BAR-EXISTING ' );
174174
175175 $ tester = new PhingTester (__DIR__ . '/copy-files-task-integration-test.xml ' , self ::TEMP_DIRECTORY_PATH );
176- $ target = __FUNCTION__ ;
176+ $ target = ' replace-multiple-files-with-existing-targets ' ;
177177 $ tester ->executeTarget ($ target );
178178
179179 Assert::assertFileEquals ($ sourceFooFilePath , $ targetFooFilePath );
@@ -203,7 +203,7 @@ public function testCopyMultipleFilesWithExistingTargetsUsingDifferentModes(): v
203203 file_put_contents ($ targetDefaultFilePath , 'DEFAULT-EXISTING ' );
204204
205205 $ tester = new PhingTester (__DIR__ . '/copy-files-task-integration-test.xml ' , self ::TEMP_DIRECTORY_PATH );
206- $ target = __FUNCTION__ ;
206+ $ target = ' copy-multiple-files-with-existing-targets-using-different-modes ' ;
207207 $ tester ->executeTarget ($ target );
208208
209209 Assert::assertFileExists ($ targetSkipFilePath );
@@ -235,7 +235,7 @@ public function testCopyMultipleFilesWithExistingTargetsUsingDifferentModesWithR
235235 file_put_contents ($ targetDefaultFilePath , 'DEFAULT-EXISTING ' );
236236
237237 $ tester = new PhingTester (__DIR__ . '/copy-files-task-integration-test.xml ' , self ::TEMP_DIRECTORY_PATH );
238- $ target = __FUNCTION__ ;
238+ $ target = ' copy-multiple-files-with-existing-targets-using-different-modes-with-replace-fallback ' ;
239239 $ tester ->executeTarget ($ target );
240240
241241 Assert::assertFileExists ($ targetSkipFilePath );
@@ -253,7 +253,7 @@ public function testCopyMultipleFilesWithExistingTargetsUsingDifferentModesWithR
253253 public function testCopyNonExistentFile (): void
254254 {
255255 $ tester = new PhingTester (__DIR__ . '/copy-files-task-integration-test.xml ' );
256- $ target = __FUNCTION__ ;
256+ $ target = ' copy-non-existent-file ' ;
257257
258258 $ tester ->expectFailedBuild ($ target );
259259
@@ -263,7 +263,7 @@ public function testCopyNonExistentFile(): void
263263 public function testCopyMultipleNonExistentFiles (): void
264264 {
265265 $ tester = new PhingTester (__DIR__ . '/copy-files-task-integration-test.xml ' );
266- $ target = __FUNCTION__ ;
266+ $ target = ' copy-multiple-non-existent-files ' ;
267267
268268 $ tester ->expectFailedBuild ($ target );
269269
@@ -281,7 +281,7 @@ public function testCopyFileToNonExistingDirectory(): void
281281 }
282282
283283 $ tester = new PhingTester (__DIR__ . '/copy-files-task-integration-test.xml ' , self ::TEMP_DIRECTORY_PATH );
284- $ target = __FUNCTION__ ;
284+ $ target = ' copy-file-to-non-existing-directory ' ;
285285
286286 $ tester ->expectFailedBuild ($ target );
287287
@@ -294,22 +294,22 @@ public function testCopyFileToNonExistingDirectory(): void
294294 public function throwBuildExceptionDataProvider (): Generator
295295 {
296296 yield 'missing copy file element ' => [
297- 'target ' => 'testMissingCopyFileElement ' ,
297+ 'target ' => 'missing-copy-file-element ' ,
298298 'expectedMessagePatternRegExp ' => '~one.+<file>.+expected~ ' ,
299299 ];
300300
301301 yield 'missing source ' => [
302- 'target ' => 'testMissingSource ' ,
302+ 'target ' => 'missing-source ' ,
303303 'expectedMessagePatternRegExp ' => '~<file>.+`source`~ ' ,
304304 ];
305305
306306 yield 'missing target ' => [
307- 'target ' => 'testMissingTarget ' ,
307+ 'target ' => 'missing-target ' ,
308308 'expectedMessagePatternRegExp ' => '~<file>.+`target`~ ' ,
309309 ];
310310
311311 yield 'invalid file exists mode ' => [
312- 'target ' => 'testInvalidFileExistsMode ' ,
312+ 'target ' => 'invalid-file-exists-mode ' ,
313313 'expectedMessagePatternRegExp ' => '~invalid.+mode~i ' ,
314314 ];
315315 }
0 commit comments