Update unittesting.rst

Make use of PHPUnit's setExpectedException() method.