|
39 | 39 | $container->bind(\Laravel\Boost\Install\CodeEnvironment\PhpStorm::class, fn () => $program1); |
40 | 40 | $container->bind(\Laravel\Boost\Install\CodeEnvironment\VSCode::class, fn () => $program2); |
41 | 41 | $container->bind(\Laravel\Boost\Install\CodeEnvironment\Cursor::class, fn () => $program3); |
42 | | - $container->bind(\Laravel\Boost\Install\CodeEnvironment\Windsurf::class, fn () => $otherProgram); |
43 | 42 | $container->bind(\Laravel\Boost\Install\CodeEnvironment\ClaudeCode::class, fn () => $otherProgram); |
44 | 43 | $container->bind(\Laravel\Boost\Install\CodeEnvironment\Zed::class, fn () => $otherProgram); |
45 | 44 | $container->bind(\Laravel\Boost\Install\CodeEnvironment\Copilot::class, fn () => $otherProgram); |
|
65 | 64 | $container->bind(\Laravel\Boost\Install\CodeEnvironment\PhpStorm::class, fn () => $program1); |
66 | 65 | $container->bind(\Laravel\Boost\Install\CodeEnvironment\VSCode::class, fn () => $otherProgram); |
67 | 66 | $container->bind(\Laravel\Boost\Install\CodeEnvironment\Cursor::class, fn () => $otherProgram); |
68 | | - $container->bind(\Laravel\Boost\Install\CodeEnvironment\Windsurf::class, fn () => $otherProgram); |
69 | 67 | $container->bind(\Laravel\Boost\Install\CodeEnvironment\ClaudeCode::class, fn () => $otherProgram); |
70 | 68 | $container->bind(\Laravel\Boost\Install\CodeEnvironment\Zed::class, fn () => $otherProgram); |
71 | 69 | $container->bind(\Laravel\Boost\Install\CodeEnvironment\Copilot::class, fn () => $otherProgram); |
|
134 | 132 | rmdir($tempDir); |
135 | 133 | }); |
136 | 134 |
|
137 | | -test('discoverProjectInstalledCodeEnvironments detects applications by file', function () { |
138 | | - $tempDir = sys_get_temp_dir().'/boost_test_'.uniqid(); |
139 | | - mkdir($tempDir); |
140 | | - file_put_contents($tempDir.'/.windsurfrules.md', 'test'); |
141 | | - |
142 | | - $detected = $this->detector->discoverProjectInstalledCodeEnvironments($tempDir); |
143 | | - |
144 | | - expect($detected)->toContain('windsurf'); |
145 | | - |
146 | | - // Cleanup |
147 | | - unlink($tempDir.'/.windsurfrules.md'); |
148 | | - rmdir($tempDir); |
149 | | -}); |
150 | | - |
151 | 135 | test('discoverProjectInstalledCodeEnvironments detects applications with mixed type', function () { |
152 | 136 | $tempDir = sys_get_temp_dir().'/boost_test_'.uniqid(); |
153 | 137 | mkdir($tempDir); |
|
0 commit comments