Eris\Generator\SuchThatGeneratorTest::testAcceptsPHPUnitConstraints PHP Method

testAcceptsPHPUnitConstraints() public method

    public function testAcceptsPHPUnitConstraints()
    {
        $generator = new SuchThatGenerator($this->callback(function ($n) {
            return $n % 2 == 0;
        }), ConstantGenerator::box(10));
        $this->assertSame(10, $generator->__invoke($this->size, $this->rand)->unbox());
    }