mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 05:42:13 +09:00
Remove trailing whitespace in all unit tests
This commit is contained in:
parent
37b0d3a1e6
commit
3b77781d15
40 changed files with 840 additions and 840 deletions
|
|
@ -13,14 +13,14 @@ class TimerTest extends \Codeception\TestCase\Test
|
|||
$elapsed = Rhymix\Framework\Timer::stop();
|
||||
usleep(1000);
|
||||
$t3 = microtime(true);
|
||||
|
||||
|
||||
$this->assertGreaterThanOrEqual($t1, $started);
|
||||
$this->assertLessThanOrEqual($t2, $started);
|
||||
$this->assertGreaterThanOrEqual($t2 - $started, $elapsed);
|
||||
$this->assertLessThanOrEqual($t3 - $t1, $elapsed);
|
||||
$this->assertGreaterThan(0, $elapsed);
|
||||
}
|
||||
|
||||
|
||||
function testNestedTimers()
|
||||
{
|
||||
$t1 = Rhymix\Framework\Timer::start();
|
||||
|
|
@ -30,11 +30,11 @@ class TimerTest extends \Codeception\TestCase\Test
|
|||
$t3 = Rhymix\Framework\Timer::stop();
|
||||
usleep(1000);
|
||||
$t4 = Rhymix\Framework\Timer::stop();
|
||||
|
||||
|
||||
$this->assertGreaterThanOrEqual($t1, $t2);
|
||||
$this->assertGreaterThan($t3, $t4);
|
||||
}
|
||||
|
||||
|
||||
function testMultipleTimers()
|
||||
{
|
||||
$t1 = Rhymix\Framework\Timer::start('timer1');
|
||||
|
|
@ -42,27 +42,27 @@ class TimerTest extends \Codeception\TestCase\Test
|
|||
$t2 = Rhymix\Framework\Timer::start('timer2');
|
||||
$t3 = Rhymix\Framework\Timer::stop('timer1');
|
||||
$t4 = Rhymix\Framework\Timer::stop('timer2');
|
||||
|
||||
|
||||
$this->assertGreaterThanOrEqual($t1, $t2);
|
||||
$this->assertGreaterThanOrEqual($t4, $t3);
|
||||
}
|
||||
|
||||
|
||||
function testTimerFormat()
|
||||
{
|
||||
$t1 = Rhymix\Framework\Timer::start();
|
||||
usleep(10000);
|
||||
$t2 = Rhymix\Framework\Timer::stopFormat();
|
||||
|
||||
|
||||
$this->assertRegexp('/^[0-9\.,]+ms$/', $t2);
|
||||
}
|
||||
|
||||
|
||||
function testTimerSinceStartup()
|
||||
{
|
||||
$t1 = Rhymix\Framework\Timer::sinceStartup();
|
||||
$t2 = Rhymix\Framework\Timer::sinceStartup();
|
||||
|
||||
|
||||
$this->assertGreaterThanOrEqual($t1, $t2);
|
||||
|
||||
|
||||
$t3 = Rhymix\Framework\Timer::sinceStartupFormat();
|
||||
$this->assertRegexp('/^[0-9\.,]+ms$/', $t3);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue