Files
laps/tests/Record/CoreTest.php
T

22 lines
480 B
PHP

<?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] );
}
}