Issue #3155760 by Hardik_Patel_12: Replace assertions involving calls to array_key_exists() with assertArrayHasKey()