Added small test to check if time limit works

This commit is contained in:
Florin Patan 2012-12-15 23:45:42 +02:00
parent 7f6e99bc4d
commit 5a73d5512f

View File

@ -173,6 +173,9 @@ abstract class AbstractProfilerStorageTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($records[0]['token'], 'time_2', '->find() returns records ordered by time in descendant order');
$this->assertEquals($records[1]['token'], 'time_1', '->find() returns records ordered by time in descendant order');
$this->assertEquals($records[2]['token'], 'time_0', '->find() returns records ordered by time in descendant order');
$records = $this->getStorage()->find('', '', 3, 'GET', $start, time() + 2 * 60);
$this->assertCount(2, $records, '->find() should return only first two of the previously added records');
}
public function testRetrieveByEmptyUrlAndIp()