88use PHPUnit \Framework \TestCase ;
99
1010// Import the namespaced functions
11- use function Neuron \Mvc \Boot ;
12- use function Neuron \Mvc \Dispatch ;
11+ use function Neuron \Mvc \boot ;
12+ use function Neuron \Mvc \dispatch ;
1313use function Neuron \Mvc \ClearExpiredCache ;
1414
1515class BootstrapTest extends TestCase
@@ -88,7 +88,7 @@ public function testBootWithValidConfig()
8888 $ this ->Root ->getChild ( 'config.yaml ' )->setContent ( $ ConfigContent );
8989
9090 // Boot the application
91- $ App = Boot ( $ BasePath );
91+ $ App = boot ( $ BasePath );
9292
9393 // Assertions
9494 $ this ->assertInstanceOf ( Application::class, $ App );
@@ -117,7 +117,7 @@ public function testBootWithMissingConfig()
117117 ->setContent ( $ VersionContent );
118118
119119 // Boot with non-existent config path - should now use environment variable
120- $ App = Boot ( vfsStream::url ( 'test/nonexistent ' ) );
120+ $ App = boot ( vfsStream::url ( 'test/nonexistent ' ) );
121121
122122 // Should successfully create application with environment path
123123 $ this ->assertInstanceOf ( Application::class, $ App );
@@ -156,7 +156,7 @@ public function testBootWithDefaultBasePath()
156156 try
157157 {
158158 // Boot with non-existent config path - will use current directory
159- $ App = Boot ( vfsStream::url ( 'test/nonexistent ' ) );
159+ $ App = boot ( vfsStream::url ( 'test/nonexistent ' ) );
160160
161161 // Should successfully create application
162162 $ this ->assertInstanceOf ( Application::class, $ App );
@@ -191,7 +191,7 @@ public function testDispatchGetRequest()
191191 } ) );
192192
193193 // Dispatch - will use actual superglobals
194- Dispatch ( $ App );
194+ dispatch ( $ App );
195195 }
196196
197197 /**
@@ -206,7 +206,7 @@ public function testDispatchFunctionIsCalled()
206206 ->with ( $ this ->isType ( 'array ' ) );
207207
208208 // Dispatch
209- Dispatch ( $ App );
209+ dispatch ( $ App );
210210 }
211211
212212 /**
@@ -228,7 +228,7 @@ public function testDispatchParametersStructure()
228228 } ) );
229229
230230 // Dispatch
231- Dispatch ( $ App );
231+ dispatch ( $ App );
232232 }
233233
234234 /**
@@ -244,7 +244,7 @@ public function testDispatchWithException()
244244
245245 // Capture output
246246 ob_start ();
247- Dispatch ( $ App );
247+ dispatch ( $ App );
248248 $ Output = ob_get_clean ();
249249
250250 // Should output 'Ouch.' when exception is caught
@@ -292,15 +292,15 @@ public function testClearExpiredCacheNoEntries()
292292 */
293293 public function testLegacyBootstrap ()
294294 {
295- $ App = Boot ( 'examples/config ' );
295+ $ App = boot ( 'examples/config ' );
296296 $ this ->assertInstanceOf ( Application::class, $ App );
297297 }
298298
299299 public function testLegacyMissingConfig ()
300300 {
301301 // With the fix, this now falls back to environment/default path
302302 // Since there's a .version.json in current directory, it will succeed
303- $ App = Boot ( 'examples/non-there ' );
303+ $ App = boot ( 'examples/non-there ' );
304304 $ this ->assertInstanceOf ( Application::class, $ App );
305305 }
306306}
0 commit comments