php unit testing function: assertInstanceOf