File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/Symfony/Component/HttpKernel/Tests Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ public function testTotalTime()
69
69
usleep (20000 );
70
70
$ event ->stop ();
71
71
$ total = $ event ->getTotalTime ();
72
- $ this ->assertTrue ($ total > 10 && $ total <= 29 , $ total .' should be 20 (between 10 and 29) ' );
72
+ $ this ->assertTrue ($ total >= 11 && $ total <= 29 , $ total .' should be 20 (between 11 and 29) ' );
73
73
74
74
$ event = new StopwatchEvent (microtime (true ) * 1000 );
75
75
$ event ->start ();
@@ -79,7 +79,7 @@ public function testTotalTime()
79
79
usleep (10000 );
80
80
$ event ->stop ();
81
81
$ total = $ event ->getTotalTime ();
82
- $ this ->assertTrue ($ total > 10 && $ total <= 29 , $ total .' should be 20 (between 10 and 29) ' );
82
+ $ this ->assertTrue ($ total >= 11 && $ total <= 29 , $ total .' should be 20 (between 11 and 29) ' );
83
83
}
84
84
85
85
/**
@@ -139,7 +139,7 @@ public function testEndTime()
139
139
usleep (10000 );
140
140
$ event ->stop ();
141
141
$ end = $ event ->getEndTime ();
142
- $ this ->assertTrue ($ end > 10 && $ end <= 29 , $ end .' should be 20 (between 10 and 29) ' );
142
+ $ this ->assertTrue ($ end >= 11 && $ end <= 29 , $ end .' should be 20 (between 11 and 29) ' );
143
143
}
144
144
145
145
/**
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ public function testGetRootDir()
293
293
{
294
294
$ kernel = new KernelForTest ('test ' , true );
295
295
296
- $ this ->assertEquals (__DIR__ .' / Fixtures ' , $ kernel ->getRootDir ());
296
+ $ this ->assertEquals (__DIR__ .DIRECTORY_SEPARATOR . ' Fixtures ' , $ kernel ->getRootDir ());
297
297
}
298
298
299
299
public function testGetName ()
You can’t perform that action at this time.
0 commit comments