public function testGetAvg() { $res = $this->object->getAvg("visits"); $this->assertType("float", $res); $this->assertEquals(4, $res); $this->setExpectedException("\\ModelException"); $this->object->getAvg("nesmysl"); }