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); }
public function testArrayKeyExists() { $this->assertTrue(\Mwyatt\Core\Helper::arrayKeyExists(['foo', 'bar'], ['foo' => 'bar', 'bar' => 'foo'])); }