PHPUnit\Runner\CleverAndSmart\Unit\Storage\Sqlite3StorageTest::testRecordingsAreSortedByFrequency PHP Method

testRecordingsAreSortedByFrequency() public method

    public function testRecordingsAreSortedByFrequency($type)
    {
        $this->assertEmpty($this->storage->getRecordings(array($type)));
        $this->storage->record($this->run1, $this->test1, 0, $type);
        $this->storage->record($this->run1, $this->test2, 0, $type);
        $this->storage->record($this->run1, $this->test1, 0, $type);
        $this->storage->record($this->run1, $this->test2, 0, $type);
        $this->storage->record($this->run2, $this->test2, 0, $type);
        $this->assertSame(array(array('class' => 'PHPUnit\\Runner\\CleverAndSmart\\Unit\\Storage\\Test', 'test' => 'testMethod2'), array('class' => 'PHPUnit\\Runner\\CleverAndSmart\\Unit\\Storage\\Test', 'test' => 'testMethod1')), $this->storage->getRecordings(array($type), false));
    }