/** * Make sure getting a value returns the correct value * * @throws \Silktide\SemRushApi\Model\Exception\InvalidDataException */ public function testGetUnsetValue() { $this->setExpectedException('Silktide\\SemRushApi\\Model\\Exception\\InvalidFieldException'); $values = ['At' => 'top', 'Ac' => '560', 'Ad' => 'biscuits, cookies, hobnobs']; $this->instance->setData($values); $this->instance->getValue('Am'); }
/** * Takes raw API data and converts into a result * * @param string[] $data * @return Row */ public function create($data) { $row = new Row(); $row->setData($data); return $row; }