Skip to content

Commit 5d60822

Browse files
committed
rename global to built-in
1 parent 502223d commit 5d60822

File tree

2 files changed

+3
-95
lines changed

2 files changed

+3
-95
lines changed

src/BuiltInGlobalFunctionMock.php

Lines changed: 0 additions & 92 deletions
This file was deleted.

tests/BuiltInFunctionMockTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function testStopWatchStartStop(): void
1616
// Set expectation for the microtime function
1717
$mock->expect('microtime',[true], 1763333612.602);
1818
$mock->expect('microtime',[true], 1763333614.825);
19-
// Use the StopWatch class which uses the global function
19+
// Use the StopWatch class which uses the built-in function
2020
$stopWatch = new StopWatch();
2121
$stopWatch->start();
2222
$result = $stopWatch->stop();
@@ -34,7 +34,7 @@ public function testExtraExpectations(): void
3434
$mock->expect('microtime',[true], 1763333612.602);
3535
$mock->expect('microtime',[true], 1763333614.825);
3636
$mock->expect('microtime',[true], 1763333616.288);
37-
// Use the StopWatch class which uses the global function
37+
// Use the StopWatch class which uses the built-in function
3838
$stopWatch = new StopWatch();
3939
$stopWatch->start();
4040
$stopWatch->stop();
@@ -53,7 +53,7 @@ public function testNotEnoughExpectations(): void
5353
$mock = new BuiltInFunctionMock('MintyPHP\Mocking\Tests\Time', $this);
5454
// Set expectation for the microtime function
5555
$mock->expect('microtime',[true], 1763333612.602);
56-
// Use the StopWatch class which uses the global function
56+
// Use the StopWatch class which uses the built-in function
5757
$stopWatch = new StopWatch();
5858
$stopWatch->start();
5959
try {

0 commit comments

Comments
 (0)