public function testFetchPairs() { foreach ($this->object->fetchPairs("id", "name") as $k => $v) { $this->assertType("int", $k); $this->assertType("string", $v); } foreach ($this->object->fetchPairs("name", "text") as $k => $v) { $this->assertType("string", $k); $this->assertType("string", $v); } $this->setExpectedException("\\ModelException"); $this->object->fetchPairs("nesmysl", "nesmysl"); }