/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ protected function setUp() { $this->initContainer(); $this->cellFactory = new \Nonogram\Cell\Factory(); $this->cellFactory->setContainer($this->container); $this->runRangeFactory = new \Nonogram\Solver\RunRange\RunRangeFactory(); $this->runRangeFactory->setContainer($this->container); }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ protected function setUp() { parent::setUp(); $this->labelFactory = new \Nonogram\Label\Factory(new \Nonogram\Label\LabelProviderCells()); $this->labelFactory->setContainer($this->container); }