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.

27 lines
790 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. public function testInitializationException()
  15. {
  16. $this->setExpectedException('InitializationException');
  17. throw new InitializationException();
  18. }
  19. public function testInitializationExceptionMessage()
  20. {
  21. $this->setExpectedException('InitializationException', 'InitializationException message', 1);
  22. throw new InitializationException('InitializationException message', 1);
  23. }
  24. }