|
10 | 10 | use Tests\Stubs\Plugin3;
|
11 | 11 |
|
12 | 12 | beforeEach(function () {
|
13 |
| - $this->io = new NullIO(); |
14 |
| - $this->composer = (new Factory())->createComposer($this->io); |
15 |
| - $this->dump = new DumpCommand(); |
| 13 | + $this->io = new NullIO; |
| 14 | + $this->composer = (new Factory)->createComposer($this->io); |
| 15 | + $this->dump = new DumpCommand; |
16 | 16 | $this->dump->setComposer($this->composer);
|
17 | 17 | });
|
18 | 18 |
|
|
21 | 21 | it('should find a single plugin with one plugin class', function () {
|
22 | 22 | fakePlugin('pestphp/plugin1', [Plugin1::class]);
|
23 | 23 |
|
24 |
| - $this->dump->run(new ArrayInput([]), new NullOutput()); |
| 24 | + $this->dump->run(new ArrayInput([]), new NullOutput); |
25 | 25 |
|
26 | 26 | $plugins = json_decode(file_get_contents('vendor/pest-plugins.json'), true);
|
27 | 27 |
|
|
31 | 31 | it('should find a single plugin with multiple plugin classes', function () {
|
32 | 32 | fakePlugin('pestphp/plugin1', [Plugin1::class, Plugin2::class]);
|
33 | 33 |
|
34 |
| - $this->dump->run(new ArrayInput([]), new NullOutput()); |
| 34 | + $this->dump->run(new ArrayInput([]), new NullOutput); |
35 | 35 |
|
36 | 36 | $plugins = json_decode(file_get_contents('vendor/pest-plugins.json'), true);
|
37 | 37 |
|
|
43 | 43 | fakePlugin('pestphp/plugin1', [Plugin1::class]);
|
44 | 44 | fakePlugin('pestphp/plugin2', [Plugin2::class]);
|
45 | 45 |
|
46 |
| - $this->dump->run(new ArrayInput([]), new NullOutput()); |
| 46 | + $this->dump->run(new ArrayInput([]), new NullOutput); |
47 | 47 |
|
48 | 48 | $plugins = json_decode(file_get_contents('vendor/pest-plugins.json'), true);
|
49 | 49 |
|
|
54 | 54 | it('should find a dev plugin', function () {
|
55 | 55 | fakePlugin('pestphp/plugin1', [Plugin1::class], true);
|
56 | 56 |
|
57 |
| - $this->dump->run(new ArrayInput([]), new NullOutput()); |
| 57 | + $this->dump->run(new ArrayInput([]), new NullOutput); |
58 | 58 |
|
59 | 59 | $plugins = json_decode(file_get_contents('vendor/pest-plugins.json'), true);
|
60 | 60 |
|
|
73 | 73 |
|
74 | 74 | $composer->getPackage()->setExtra($extra);
|
75 | 75 |
|
76 |
| - $this->dump->run(new ArrayInput([]), new NullOutput()); |
| 76 | + $this->dump->run(new ArrayInput([]), new NullOutput); |
77 | 77 | $plugins = json_decode(file_get_contents('vendor/pest-plugins.json'), true);
|
78 | 78 |
|
79 | 79 | $this->assertContains(Plugin3::class, $plugins);
|
|
0 commit comments