/** * @covers CryptLib\Password\Implementation\Blowfish */ public function test8bitPassword() { $hash = new Blowfish(10); $password = '******' . chr(128); if (version_compare(PHP_VERSION, '5.3.7') >= 0) { $test = $hash->create($password); $this->assertEquals(60, strlen($test)); $this->assertEquals(Blowfish::getPrefix(), substr($test, 0, 4)); } else { $this->setExpectedException('\\RuntimeException'); $test = $hash->create($password); } }