Replacement of assertEquals() to assertSame()
This commit is contained in:
@ -175,7 +175,7 @@ class FormFieldTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
$this->assertTrue($form_field->isValid($test_string));
|
||||
$this->assertAttributeNotInternalType('array', 'value', $form_field);
|
||||
$this->assertEquals('login', $form_field->getValue());
|
||||
$this->assertSame('login', $form_field->getValue());
|
||||
}
|
||||
|
||||
public function testGetValueStringIncorrect()
|
||||
@ -186,7 +186,7 @@ class FormFieldTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
$this->assertTrue($form_field->isValid($test_string));
|
||||
$this->assertAttributeNotInternalType('array', 'value', $form_field);
|
||||
$this->assertEquals('', $form_field->getValue());
|
||||
$this->assertSame('', $form_field->getValue());
|
||||
}
|
||||
|
||||
public function testGetMessageDefault()
|
||||
|
@ -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