Replacement of assertEquals() to assertSame()
This commit is contained in:
@ -31,13 +31,13 @@ class CaptchaValidatorTest extends PHPUnit_Framework_TestCase
|
||||
$validator = new CaptchaValidator();
|
||||
$this->assertTrue($validator->isValid(null, array('ctoken' => $token, 'ccode' => $code)));
|
||||
$this->assertFalse($validator->isValid(null, array('ctoken' => $token . 'asd', 'ccode' => $code)));
|
||||
$this->assertEquals('Entered code wrong', $validator->getMessage());
|
||||
$this->assertSame('Entered code wrong', $validator->getMessage());
|
||||
}
|
||||
|
||||
public function testIsValidInvalid()
|
||||
{
|
||||
$validator = new CaptchaValidator();
|
||||
$this->assertFalse($validator->isValid(null, array()));
|
||||
$this->assertEquals('Entered code wrong', $validator->getMessage());
|
||||
$this->assertSame('Entered code wrong', $validator->getMessage());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user