You are here

class Phpunit4CompatibilityTest in Drupal 8

Tests existence of the PHPUnit4 backward compatibility classes.

@group Tests

Hierarchy

Expanded class hierarchy of Phpunit4CompatibilityTest

File

core/tests/Drupal/Tests/Phpunit4CompatibilityTest.php, line 10

Namespace

Drupal\Tests
View source
class Phpunit4CompatibilityTest extends UnitTestCase {

  /**
   * Tests existence of \PHPUnit_Framework_AssertionFailedError.
   */
  public function testFrameworkAssertionFailedError() {
    $this
      ->assertTrue(class_exists('\\PHPUnit_Framework_AssertionFailedError'));
  }

  /**
   * Tests existence of \PHPUnit_Framework_Constraint_Count.
   */
  public function testFrameworkConstraintCount() {
    $this
      ->assertTrue(class_exists('\\PHPUnit_Framework_Constraint_Count'));
  }

  /**
   * Tests existence of \PHPUnit_Framework_Error.
   */
  public function testFrameworkError() {
    $this
      ->assertTrue(class_exists('\\PHPUnit_Framework_Error'));
  }

  /**
   * Tests existence of \PHPUnit_Framework_Error_Warning.
   */
  public function FrameworkErrorWarning() {
    $this
      ->assertTrue(class_exists('\\PHPUnit_Framework_Error_Warning'));
  }

  /**
   * Tests existence of \PHPUnit_Framework_Exception.
   */
  public function testFrameworkException() {
    $this
      ->assertTrue(class_exists('\\PHPUnit_Framework_Exception'));
  }

  /**
   * Tests existence of \PHPUnit_Framework_ExpectationFailedException.
   */
  public function testFrameworkExpectationFailedException() {
    $this
      ->assertTrue(class_exists('\\PHPUnit_Framework_ExpectationFailedException'));
  }

  /**
   * Tests existence of \PHPUnit_Framework_MockObject_Matcher_InvokedRecorder.
   */
  public function testFrameworkMockObjectMatcherInvokedRecorder() {
    $this
      ->assertTrue(class_exists('\\PHPUnit_Framework_MockObject_Matcher_InvokedRecorder'));
  }

  /**
   * Tests existence of \PHPUnit_Framework_SkippedTestError.
   */
  public function testFrameworkSkippedTestError() {
    $this
      ->assertTrue(class_exists('\\PHPUnit_Framework_SkippedTestError'));
  }

  /**
   * Tests existence of \PHPUnit_Framework_TestCase.
   */
  public function testFrameworkTestCase() {
    $this
      ->assertTrue(class_exists('\\PHPUnit_Framework_TestCase'));
  }

  /**
   * Tests existence of \PHPUnit_Util_Test.
   */
  public function testUtilTest() {
    $this
      ->assertTrue(class_exists('\\PHPUnit_Util_Test'));
  }

  /**
   * Tests existence of \PHPUnit_Util_XML.
   */
  public function testUtilXml() {
    $this
      ->assertTrue(class_exists('\\PHPUnit_Util_XML'));
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Phpunit4CompatibilityTest::FrameworkErrorWarning public function Tests existence of \PHPUnit_Framework_Error_Warning.
Phpunit4CompatibilityTest::testFrameworkAssertionFailedError public function Tests existence of \PHPUnit_Framework_AssertionFailedError.
Phpunit4CompatibilityTest::testFrameworkConstraintCount public function Tests existence of \PHPUnit_Framework_Constraint_Count.
Phpunit4CompatibilityTest::testFrameworkError public function Tests existence of \PHPUnit_Framework_Error.
Phpunit4CompatibilityTest::testFrameworkException public function Tests existence of \PHPUnit_Framework_Exception.
Phpunit4CompatibilityTest::testFrameworkExpectationFailedException public function Tests existence of \PHPUnit_Framework_ExpectationFailedException.
Phpunit4CompatibilityTest::testFrameworkMockObjectMatcherInvokedRecorder public function Tests existence of \PHPUnit_Framework_MockObject_Matcher_InvokedRecorder.
Phpunit4CompatibilityTest::testFrameworkSkippedTestError public function Tests existence of \PHPUnit_Framework_SkippedTestError.
Phpunit4CompatibilityTest::testFrameworkTestCase public function Tests existence of \PHPUnit_Framework_TestCase.
Phpunit4CompatibilityTest::testUtilTest public function Tests existence of \PHPUnit_Util_Test.
Phpunit4CompatibilityTest::testUtilXml public function Tests existence of \PHPUnit_Util_XML.
PhpunitCompatibilityTrait::getMock Deprecated public function Returns a mock object for the specified class using the available method.
PhpunitCompatibilityTrait::setExpectedException Deprecated public function Compatibility layer for PHPUnit 6 to support PHPUnit 4 code.
UnitTestCase::$randomGenerator protected property The random generator.
UnitTestCase::$root protected property The app root. 1
UnitTestCase::assertArrayEquals protected function Asserts if two arrays are equal by sorting them first.
UnitTestCase::getBlockMockWithMachineName Deprecated protected function Mocks a block with a block plugin. 1
UnitTestCase::getClassResolverStub protected function Returns a stub class resolver.
UnitTestCase::getConfigFactoryStub public function Returns a stub config factory that behaves according to the passed array.
UnitTestCase::getConfigStorageStub public function Returns a stub config storage that returns the supplied configuration.
UnitTestCase::getContainerWithCacheTagsInvalidator protected function Sets up a container with a cache tags invalidator.
UnitTestCase::getRandomGenerator protected function Gets the random generator for the utility methods.
UnitTestCase::getStringTranslationStub public function Returns a stub translation manager that just returns the passed string.
UnitTestCase::randomMachineName public function Generates a unique random string containing letters and numbers.
UnitTestCase::setUp protected function 340