Page MenuHomeDevCentral

EmptyDatabaseResultTest.php
No OneTemporary

EmptyDatabaseResultTest.php

<?php
namespace Keruald\Database\Tests\Result;
use Keruald\Database\Result\EmptyDatabaseResult;
use PHPUnit\Framework\TestCase;
class EmptyDatabaseResultTest extends TestCase {
private EmptyDatabaseResult $result;
protected function setUp () : void {
$this->result = new EmptyDatabaseResult();
}
public function testNumRows () : void {
$this->assertSame(0, $this->result->numRows());
}
public function testFetchRow () : void {
$this->assertEmpty($this->result->fetchRow());
}
public function testGetIterator () : void {
$actual = iterator_to_array($this->result->getIterator());
$this->assertSame([], $actual);
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, May 1, 02:49 (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2544245
Default Alt Text
EmptyDatabaseResultTest.php (701 B)

Event Timeline