Changed namespaces and added Query Builder Co-authored-by: Juan Pablo Vial <jpvial@goacegroup.com> Reviewed-on: #2
21 lines
454 B
PHP
21 lines
454 B
PHP
<?php
|
|
use PHPUnit\Framework\TestCase;
|
|
use Database\Implement\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());
|
|
}
|
|
}
|