@@ -6,14 +6,12 @@ |
||
6 | 6 | use BrianHenryIE\Strauss\Console\Commands\Compose; |
7 | 7 | use PHPUnit\Framework\TestCase; |
8 | 8 | |
9 | -class ApplicationTest extends TestCase |
|
10 | -{ |
|
9 | +class ApplicationTest extends TestCase { |
|
11 | 10 | |
12 | 11 | /** |
13 | 12 | * Test the Symfony\Component\Console\Application instance contains the Compose command. |
14 | 13 | */ |
15 | - public function testInstantiation() |
|
16 | - { |
|
14 | + public function testInstantiation() { |
|
17 | 15 | |
18 | 16 | $version = '1.0.0'; |
19 | 17 |
@@ -16,8 +16,7 @@ discard block |
||
16 | 16 | * @package BrianHenryIE\Strauss\Tests\Integration\Util |
17 | 17 | * @coversNothing |
18 | 18 | */ |
19 | -class IntegrationTestCase extends TestCase |
|
20 | -{ |
|
19 | +class IntegrationTestCase extends TestCase { |
|
21 | 20 | protected $testsWorkingDir; |
22 | 21 | |
23 | 22 | public function setUp(): void |
@@ -49,8 +48,7 @@ discard block |
||
49 | 48 | $this->deleteDir($dir); |
50 | 49 | } |
51 | 50 | |
52 | - protected function deleteDir($dir) |
|
53 | - { |
|
51 | + protected function deleteDir($dir) { |
|
54 | 52 | if (!file_exists($dir)) { |
55 | 53 | return; |
56 | 54 | } |
@@ -15,11 +15,9 @@ discard block |
||
15 | 15 | * @package BrianHenryIE\Strauss |
16 | 16 | * @coversNothing |
17 | 17 | */ |
18 | -class CopierIntegrationTest extends IntegrationTestCase |
|
19 | -{ |
|
18 | +class CopierIntegrationTest extends IntegrationTestCase { |
|
20 | 19 | |
21 | - public function testsPrepareTarget() |
|
22 | - { |
|
20 | + public function testsPrepareTarget() { |
|
23 | 21 | |
24 | 22 | $composerJsonString = <<<'EOD' |
25 | 23 | { |
@@ -77,8 +75,7 @@ discard block |
||
77 | 75 | $this->assertFileDoesNotExist($targetFile); |
78 | 76 | } |
79 | 77 | |
80 | - public function testsCopy() |
|
81 | - { |
|
78 | + public function testsCopy() { |
|
82 | 79 | |
83 | 80 | $composerJsonString = <<<'EOD' |
84 | 81 | { |
@@ -20,11 +20,9 @@ discard block |
||
20 | 20 | * @package BrianHenryIE\Strauss\Tests\Integration |
21 | 21 | * @coversNothing |
22 | 22 | */ |
23 | -class ReplacerIntegrationTest extends IntegrationTestCase |
|
24 | -{ |
|
23 | +class ReplacerIntegrationTest extends IntegrationTestCase { |
|
25 | 24 | |
26 | - public function testReplaceNamespace() |
|
27 | - { |
|
25 | + public function testReplaceNamespace() { |
|
28 | 26 | |
29 | 27 | $composerJsonString = <<<'EOD' |
30 | 28 | { |
@@ -87,8 +85,7 @@ discard block |
||
87 | 85 | } |
88 | 86 | |
89 | 87 | |
90 | - public function testReplaceClass() |
|
91 | - { |
|
88 | + public function testReplaceClass() { |
|
92 | 89 | |
93 | 90 | $composerJsonString = <<<'EOD' |
94 | 91 | { |
@@ -6,7 +6,6 @@ |
||
6 | 6 | * @package BrianHenryIE\Strauss\Tests\Integration |
7 | 7 | * @coversNothing |
8 | 8 | */ |
9 | -class CleanupIntegrationTest |
|
10 | -{ |
|
9 | +class CleanupIntegrationTest { |
|
11 | 10 | |
12 | 11 | } |
@@ -16,11 +16,9 @@ discard block |
||
16 | 16 | * @package BrianHenryIE\Strauss |
17 | 17 | * @coversNothing |
18 | 18 | */ |
19 | -class FileEnumeratorIntegrationTest extends IntegrationTestCase |
|
20 | -{ |
|
19 | +class FileEnumeratorIntegrationTest extends IntegrationTestCase { |
|
21 | 20 | |
22 | - public function testBuildFileList() |
|
23 | - { |
|
21 | + public function testBuildFileList() { |
|
24 | 22 | |
25 | 23 | $composerJsonString = <<<'EOD' |
26 | 24 | { |
@@ -65,14 +63,12 @@ discard block |
||
65 | 63 | } |
66 | 64 | |
67 | 65 | |
68 | - public function testClassmapAutoloader() |
|
69 | - { |
|
66 | + public function testClassmapAutoloader() { |
|
70 | 67 | $this->markTestIncomplete(); |
71 | 68 | } |
72 | 69 | |
73 | 70 | |
74 | - public function testFilesAutoloader() |
|
75 | - { |
|
71 | + public function testFilesAutoloader() { |
|
76 | 72 | $this->markTestIncomplete(); |
77 | 73 | } |
78 | 74 | } |
@@ -15,14 +15,12 @@ |
||
15 | 15 | * @package BrianHenryIE\Strauss |
16 | 16 | * @coversNothing |
17 | 17 | */ |
18 | -class ChangeEnumeratorIntegrationTest extends IntegrationTestCase |
|
19 | -{ |
|
18 | +class ChangeEnumeratorIntegrationTest extends IntegrationTestCase { |
|
20 | 19 | |
21 | 20 | /** |
22 | 21 | * Given a list of files, find all the global classes and the namespaces. |
23 | 22 | */ |
24 | - public function testOne() |
|
25 | - { |
|
23 | + public function testOne() { |
|
26 | 24 | |
27 | 25 | $composerJsonString = <<<'EOD' |
28 | 26 | { |
@@ -19,8 +19,7 @@ discard block |
||
19 | 19 | * @package BrianHenryIE\Strauss\Tests\Issues |
20 | 20 | * @coversNothing |
21 | 21 | */ |
22 | -class MozartIssue66Test extends IntegrationTestCase |
|
23 | -{ |
|
22 | +class MozartIssue66Test extends IntegrationTestCase { |
|
24 | 23 | |
25 | 24 | /** |
26 | 25 | * |
@@ -35,8 +34,7 @@ discard block |
||
35 | 34 | * ] |
36 | 35 | * }, |
37 | 36 | */ |
38 | - public function testFilesAutoloaderIsUsed() |
|
39 | - { |
|
37 | + public function testFilesAutoloaderIsUsed() { |
|
40 | 38 | |
41 | 39 | $composerJsonString = <<<'EOD' |
42 | 40 | { |
@@ -14,14 +14,12 @@ |
||
14 | 14 | * @package BrianHenryIE\Strauss\Tests\Issues |
15 | 15 | * @coversNothing |
16 | 16 | */ |
17 | -class StraussIssue8Test extends \BrianHenryIE\Strauss\Tests\Integration\Util\IntegrationTestCase |
|
18 | -{ |
|
17 | +class StraussIssue8Test extends \BrianHenryIE\Strauss\Tests\Integration\Util\IntegrationTestCase { |
|
19 | 18 | |
20 | 19 | /** |
21 | 20 | * @author BrianHenryIE |
22 | 21 | */ |
23 | - public function test_delete_vendor_files() |
|
24 | - { |
|
22 | + public function test_delete_vendor_files() { |
|
25 | 23 | |
26 | 24 | $composerJsonString = <<<'EOD' |
27 | 25 | { |