fixing php test

Old test was deprecated and didn't really work. New test reflects actual code.