public function testGetIdByParameter() { $testResult = array(1); $result = Hosttemplate::getIdByParameter('host_name', 'Template host'); $this->assertEquals($testResult, $result); $this->setExpectedException('PDOException', '', '42S22'); Hosttemplate::getIdByParameter('errColumn', 'Host'); }