ExceptionTest.php

File

drupal/core/vendor/phpunit/phpunit/Tests/_files/ExceptionTest.php
View source
<?php

class ExceptionTest extends PHPUnit_Framework_TestCase {

  /**
   * Exception message
   *
   * @var string
   */
  const ERROR_MESSAGE = 'Exception message';

  /**
   * Exception code
   *
   * @var integer
   */
  const ERROR_CODE = 500;

  /**
   * @expectedException FooBarBaz
   */
  public function testOne() {
  }

  /**
   * @expectedException Foo_Bar_Baz
   */
  public function testTwo() {
  }

  /**
   * @expectedException Foo\Bar\Baz
   */
  public function testThree() {
  }

  /**
   * @expectedException ほげ
   */
  public function testFour() {
  }

  /**
   * @expectedException Class Message 1234
   */
  public function testFive() {
  }

  /**
   * @expectedException Class
   * @expectedExceptionMessage Message
   * @expectedExceptionCode 1234
   */
  public function testSix() {
  }

  /**
   * @expectedException Class
   * @expectedExceptionMessage Message
   * @expectedExceptionCode ExceptionCode
   */
  public function testSeven() {
  }

  /**
   * @expectedException Class
   * @expectedExceptionMessage Message
   * @expectedExceptionCode 0
   */
  public function testEight() {
  }

  /**
   * @expectedException Class
   * @expectedExceptionMessage ExceptionTest::ERROR_MESSAGE
   * @expectedExceptionCode ExceptionTest::ERROR_CODE
   */
  public function testNine() {
  }

  /** @expectedException Class */
  public function testSingleLine() {
  }

  /**
   * @expectedException Class
   * @expectedExceptionCode ExceptionTest::UNKNOWN_CODE_CONSTANT
   * @expectedExceptionMessage ExceptionTest::UNKNOWN_MESSAGE_CONSTANT
   */
  public function testUnknownConstants() {
  }

}

Classes

Namesort descending Description
ExceptionTest