public function test_accessors() { /** === Test Data === */ $CODE = 'code'; $CUR = 'currency'; $ID = 'id'; $NOTE = 'note'; $STOCK_REF = 'stock'; /** === Call and asserts === */ $this->obj->setCode($CODE); $this->obj->setCurrency($CUR); $this->obj->setNote($NOTE); $this->obj->setStockRef($STOCK_REF); $this->assertEquals($CODE, $this->obj->getCode()); $this->assertEquals($CUR, $this->obj->getCurrency()); $this->assertEquals($NOTE, $this->obj->getNote()); $this->assertEquals($STOCK_REF, $this->obj->getStockRef()); }