You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
855 B

  1. <?php
  2. /*
  3. * @copyright NetMonsters <team@netmonsters.ru>
  4. * @link http://netmonsters.ru
  5. * @package Majestic
  6. * @subpackage UnitTests
  7. * @since 2011-11-24
  8. *
  9. * Unit tests for InitializationException class
  10. */
  11. require_once dirname(__FILE__) . '/../../exception/InitializationException.php';
  12. class InitializationExceptionTest extends PHPUnit_Framework_TestCase
  13. {
  14. /**
  15. * @expectedException InitializationException
  16. */
  17. public function testInitializationException()
  18. {
  19. throw new InitializationException();
  20. }
  21. /**
  22. * @expectedException InitializationException
  23. * @expectedExceptionMessage InitializationException message
  24. * @excpectedExceptionCode 1
  25. */
  26. public function testInitializationExceptionMessage()
  27. {
  28. throw new InitializationException('InitializationException message', 1);
  29. }
  30. }