added unit tests.
This commit is contained in:
13
tests/BenchmarkTest.php
Normal file
13
tests/BenchmarkTest.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
class BenchmarkTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
public function testStartMethodCreatesMark()
|
||||
{
|
||||
Benchmark::start('test');
|
||||
|
||||
$this->assertTrue(is_float(Benchmark::check('test')));
|
||||
$this->assertGreaterThan(0.0, Benchmark::check('test'));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user