These tests cases were converted using the script at https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34. Needed to also re-run update_test_checks.py, otherwise some of them would fail.
Replace a switch statement used to validate arguments to known library functions with a more consistent table-driven approach and tighten it up.