public function testGeneratePassword($length, $password) { $this->_object->setOptionValue(DummyPasswordGenerator::OPTION_LENGTH, $length); $this->assertSame($this->_object->generatePassword(), $password); }