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

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

public testMinWordLength ( )
    public function testMinWordLength()
    {
        $this->_object->setMinWordLength(1);
        $this->assertSame($this->_object->getMinWordLength(), 1);
        $this->_object->setMinWordLength(6);
        $this->assertSame($this->_object->getMinWordLength(), 6);
        $this->setExpectedException('InvalidArgumentException');
        $this->_object->setMinWordLength(-6);
        $this->setExpectedException('InvalidArgumentException');
        $this->_object->setMinWordLength('fail');
    }