Hackzilla\PasswordGenerator\Tests\Generator\HumanPasswordGeneratorTest::testMaxWordLength PHP Метод

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

public testMaxWordLength ( )
    public function testMaxWordLength()
    {
        $this->_object->setMaxWordLength(1);
        $this->assertSame($this->_object->getMaxWordLength(), 1);
        $this->_object->setMaxWordLength(6);
        $this->assertSame($this->_object->getMaxWordLength(), 6);
        $this->setExpectedException('InvalidArgumentException');
        $this->_object->setMaxWordLength(-6);
        $this->setExpectedException('InvalidArgumentException');
        $this->_object->setMaxWordLength('fail');
    }