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