Added PHP and core load collector.
This commit is contained in:
1 parent
e74777c2a9
commit
4238509861
4 files changed
+59
-3
No files matched your search
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Rarst\Laps\Tests\Record;
|
||||
|
||||
use Rarst\Laps\Record\Core_Load_Collector;
|
||||
use Rarst\Laps\Record\Record_Interface;
|
||||
use Rarst\Laps\Tests\LapsTestCase;
|
||||
|
||||
class CoreTest extends LapsTestCase {
|
||||
|
||||
public function testCollector() {
|
||||
|
||||
$collector = new Core_Load_Collector();
|
||||
|
||||
$records = $collector->get_records();
|
||||
|
||||
$this->assertInternalType( 'array', $records );
|
||||
$this->assertCount( 2, $records );
|
||||
$this->assertInstanceOf( Record_Interface::class, $records[0] );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user