Exemplo n.º 1
0
 public function testFetch()
 {
     $this->database->prepare('select * from user;');
     $this->database->execute();
     $this->assertTrue(\Mwyatt\Core\Helper::arrayKeyExists(['id', 'email', 'password', 'timeCreated', 'nameFirst', 'nameLast'], $this->database->fetch()));
     $this->database->prepare('select * from user;');
     $this->database->execute();
     $this->assertTrue(count($this->database->fetchAll()) >= 1);
 }
Exemplo n.º 2
0
 public function testArrayKeyExists()
 {
     $this->assertTrue(\Mwyatt\Core\Helper::arrayKeyExists(['foo', 'bar'], ['foo' => 'bar', 'bar' => 'foo']));
 }