Eris\Generator\MapGeneratorTest::testGeneratesAGeneratedValueObject PHP Method

testGeneratesAGeneratedValueObject() public method

    public function testGeneratesAGeneratedValueObject()
    {
        $generator = new MapGenerator(function ($n) {
            return $n * 2;
        }, ConstantGenerator::box(1));
        $this->assertEquals(2, $generator->__invoke($this->size, $this->rand)->unbox());
    }