Replace assertions involving calls to array_key_exists() with assertArrayHasKey()