Skip to content

Commit 301f971

Browse files
committed
add Db test
1 parent 6712f1a commit 301f971

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

tests/phpunit/DbTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
namespace Pdsinterop\PhpSolid;
3+
4+
use Pdsinterop\PhpSolid\Db;
5+
6+
const DBPATH = ":memory:";
7+
class DbTest extends \PHPUnit\Framework\TestCase
8+
{
9+
public function testConnect() {
10+
Db::connect();
11+
$this->assertInstanceOf("PDO", Db::$pdo);
12+
}
13+
}

0 commit comments

Comments
 (0)