public function testGetMax() { $res = $this->object->getMax("visits"); $this->assertType("int", $res); $this->assertEquals(8, $res); $this->setExpectedException("\\ModelException"); $this->object->getMax("nesmysl"); }