on unit test use @expectedException
some phpdoc added