<?php function thisThrowsAnException() { throw new Exception('There was an exception'); } NaithCliRunner::assertException('thisThrowsAnException');
<?php function thisDoesNotThrowAnException() { /* * DO not throw one! */ } NaithCliRunner::assertException('thisDoesNotThrowAnException');