/**
  * Tests the verify method.
  *
  * @covers        JCryptPasswordSimple::verify
  * @dataProvider  verifyData
  */
 public function testVerify($password, $hash, $expectation)
 {
     $hasher = new JCryptPasswordSimple();
     $this->assertEquals($hasher->verify($password, $hash), $expectation);
 }
 /**
  * Tests the getDefaultType method.
  *
  * @param   string  $type         The proposed default type
  * @param   string  $expectation  The expected value of $this->defaultType
  *
  * @dataProvider  defaultTypeData
  *
  * @return void
  *
  * @since   12.3
  */
 public function testGetDefaultType($type, $expectation)
 {
     $test = new JCryptPasswordSimple();
     $test->setDefaultType($type);
     $this->assertThat($test->getDefaultType(), $this->equalTo($expectation));
 }