Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F7577955
EmptyDatabaseResultTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
701 B
Referenced Files
None
Subscribers
None
EmptyDatabaseResultTest.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rKERUALD Keruald libraries development repository
Attached
Detach File
Event Timeline
Log In to Comment