Eris\Generator\VectorGeneratorTest::setUp PHP Method

setUp() protected method

protected setUp ( )
    protected function setUp()
    {
        $this->vectorSize = rand(5, 10);
        $this->size = 10;
        $this->elementGenerator = new ChooseGenerator(1, 10);
        $this->vectorGenerator = new VectorGenerator($this->vectorSize, $this->elementGenerator);
        $this->sum = function ($acc, $item) {
            $acc = $acc + $item;
            return $acc;
        };
        $this->rand = 'rand';
    }