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 testCalcAverage()
 {
     $this->assertEquals(75, \Mwyatt\Core\Helper::calcAverage(150, 200));
 }