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

testRecordedErrorsAreRemovedAfterFiveTimes() public method

    public function testRecordedErrorsAreRemovedAfterFiveTimes($type)
    {
        $this->assertEmpty($this->storage->getRecordings(array($type)));
        $this->storage->record($this->run1, $this->test1, 1, $type);
        $this->assertNotEmpty($this->storage->getRecordings(array($type)));
        $this->storage->record($this->run1, $this->test1, 1, StorageInterface::STATUS_PASSED);
        $this->assertNotEmpty($this->storage->getRecordings(array($type)));
        $this->storage->record($this->run1, $this->test1, 2, StorageInterface::STATUS_PASSED);
        $this->assertNotEmpty($this->storage->getRecordings(array($type)));
        $this->storage->record($this->run1, $this->test1, 3, StorageInterface::STATUS_PASSED);
        $this->assertNotEmpty($this->storage->getRecordings(array($type)));
        $this->storage->record($this->run1, $this->test1, 4, StorageInterface::STATUS_PASSED);
        $this->assertEmpty($this->storage->getRecordings(array($type)));
    }