Dep: update

주로 PHAN
This commit is contained in:
2021-08-06 22:39:09 +09:00
parent 5310c2e7f6
commit b306601c72
1098 changed files with 92137 additions and 33228 deletions
+7 -5
View File
@@ -117,10 +117,12 @@ class ObjectTest extends SimpleTest {
$results = $this->mdb->query("SELECT * FROM accounts WHERE username!=%s", "Charlie's Friend");
$this->assert(count($results) === 2);
$columnlist = $this->mdb->columnList('accounts');
$this->assert(count($columnlist) === 6);
$this->assert($columnlist[0] === 'id');
$this->assert($columnlist[4] === 'height');
$columnList = $this->mdb->columnList('accounts');
$columnKeys = array_keys($columnList);
$this->assert(count($columnList) === 6);
$this->assert($columnList['id']['type'] == 'int(11)');
$this->assert($columnList['height']['type'] == 'double');
$this->assert($columnKeys[4] == 'height');
$tablelist = $this->mdb->tableList();
$this->assert(count($tablelist) === 1);
@@ -215,7 +217,7 @@ class ObjectTest extends SimpleTest {
) ENGINE = InnoDB");
$smile = file_get_contents('smile1.jpg');
$smile = file_get_contents(__DIR__ . '/smile1.jpg');
$this->mdb->insert('storedata', array(
'picture' => $smile,
));