This is not true. You don't get an exception in this case, but a fatal error because of an argument not respecting the typehint. And I don't think you need a test for this case (checking the typehint is not done by your code but by PHP)