1--TEST-- 2Crypto\KDF::getLength basic usage. 3--FILE-- 4<?php 5// sub classing 6class SubKDF extends Crypto\KDF { 7 function __construct($length) { 8 parent::__construct($length); 9 } 10 function derive($password) { 11 return sha1($password); 12 } 13} 14$subkdf = new SubKDF(32, 'salt'); 15var_dump($subkdf->getLength()); 16?> 17--EXPECT-- 18int(32) 19