MockTearDownThrowsException.php 484 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Lithium: the most rad php framework
  4. *
  5. * @copyright Copyright 2013, Union of RAD (http://union-of-rad.org)
  6. * @license http://opensource.org/licenses/bsd-license.php The BSD License
  7. */
  8. namespace lithium\tests\mocks\test\cases;
  9. use Exception;
  10. class MockTearDownThrowsException extends \lithium\test\Unit {
  11. public function testNothing() {
  12. $this->assert(true);
  13. }
  14. public function tearDown() {
  15. throw new Exception('tearDown throws exception');
  16. }
  17. }
  18. ?>