Replacement of assertEquals() to assertSame()
This commit is contained in:
@ -31,7 +31,7 @@ class FormTest extends PHPUnit_Framework_TestCase
|
||||
$return_object = $method->invokeArgs($stub, array('login'));
|
||||
|
||||
$this->assertInstanceOf('FormField', $return_object);
|
||||
$this->assertEquals($form_field, $return_object);
|
||||
$this->assertSame($form_field, $return_object);
|
||||
}
|
||||
|
||||
public function testAddFieldWithMessage()
|
||||
@ -44,7 +44,7 @@ class FormTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
$return_object = $method->invokeArgs($stub, array('login', $message));
|
||||
$this->assertInstanceOf('FormField', $return_object);
|
||||
$this->assertEquals($form_field, $return_object);
|
||||
$this->assertSame($form_field, $return_object);
|
||||
$this->assertAttributeEquals($message, 'default_message', $return_object);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user