Fakerino\Test\FakeData\Generator\TextGeneratorTest::testGenerateWithLengthOption PHP Метод

testGenerateWithLengthOption() публичный Метод

    public function testGenerateWithLengthOption()
    {
        $length = 10;
        $map = array(array('length', $length), array('addChars', 'test'));
        $this->mockCaller->expects($this->exactly(2))->method('getOption')->will($this->returnValueMap($map));
        $randomString = $this->randomStringGenerator->generate();
        $this->assertEquals($length, strlen($randomString));
    }