Commit 54758e50 authored by webchick's avatar webchick

Issue #1817144 by kbasarab, jhodgdon: Fixed Some test assertions are inconsistent with the others.

parent a56f7110
...@@ -518,7 +518,7 @@ protected function assertNotIdentical($first, $second, $message = '', $group = ' ...@@ -518,7 +518,7 @@ protected function assertNotIdentical($first, $second, $message = '', $group = '
* @return * @return
* TRUE if the assertion succeeded, FALSE otherwise. * TRUE if the assertion succeeded, FALSE otherwise.
*/ */
protected function assertIdenticalObject($object1, $object2, $message = '', $group = '') { protected function assertIdenticalObject($object1, $object2, $message = '', $group = 'Other') {
$message = $message ?: format_string('!object1 is identical to !object2', array( $message = $message ?: format_string('!object1 is identical to !object2', array(
'!object1' => var_export($object1, TRUE), '!object1' => var_export($object1, TRUE),
'!object2' => var_export($object2, TRUE), '!object2' => var_export($object2, TRUE),
...@@ -527,7 +527,7 @@ protected function assertIdenticalObject($object1, $object2, $message = '', $gro ...@@ -527,7 +527,7 @@ protected function assertIdenticalObject($object1, $object2, $message = '', $gro
foreach ($object1 as $key => $value) { foreach ($object1 as $key => $value) {
$identical = $identical && isset($object2->$key) && $object2->$key === $value; $identical = $identical && isset($object2->$key) && $object2->$key === $value;
} }
return $this->assertTrue($identical, $message); return $this->assertTrue($identical, $message, $group);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment