fixed phpunit bug

without deserialize the class created by the phpunit generator respect the interface.