Replacement of assertEquals() to assertSame()

This commit is contained in:
Vyacheslav Agafonov
2011-12-02 17:22:31 +04:00
parent 3a79d203c7
commit 0fdcb87653
35 changed files with 214 additions and 214 deletions

View File

@ -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);
}