/** * Prepare the merging of the fields and return a document * * @param Container $container * * @return Document */ public function prepare() { $blocks = $this->container->getBlocks(); $fields = array_merge($this->container->getFields(), $this->container->getImages()); $this->declareListOfBlocks($blocks)->declareListOfValues($fields); return $this->createDocument(); }
public function test_assign_store_singleValue() { $container = new LDXContainer(); $container->assign('test', 'testValue'); $this->array($container->getFields())->hasKeys(['test'])->containsValues(['testValue']); }