MINOR: Updated SapphireTest::dataObjectArrayMatch() to use array_key_exists() rather than isset(). This allows tempting for NULL values in DOS assertion methods.

This commit is contained in:
ajshort 2011-03-28 00:48:27 +11:00 committed by Sam Minnee
parent 3fbb29a6c5
commit ff3d3816ca

View File

@ -659,7 +659,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
*/
private function dataObjectArrayMatch($item, $match) {
foreach($match as $k => $v) {
if(!isset($item[$k]) || $item[$k] != $v) return false;
if(!array_key_exists($k, $item) || $item[$k] != $v) return false;
}
return true;
}