Added testing
This commit is contained in:
20
tests/SQLiteTest.php
Normal file
20
tests/SQLiteTest.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use ProVM\Database\SQLite;
|
||||
|
||||
class SQLiteTest extends TestCase
|
||||
{
|
||||
public function testDatabase()
|
||||
{
|
||||
$host = ":memory:";
|
||||
|
||||
$dsn = "sqlite:{$host}";
|
||||
|
||||
$database = new SQLite();
|
||||
$database->setHost($host);
|
||||
|
||||
$this->assertEquals($host, $database->getHost());
|
||||
$this->assertFalse($database->needsUser());
|
||||
$this->assertEquals($dsn, $database->getDsn());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user