Phpunit4CompatibilityTest.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. namespace Drupal\Tests;
  3. /**
  4. * Tests existence of the PHPUnit4 backward compatibility classes.
  5. *
  6. * @group Tests
  7. */
  8. class Phpunit4CompatibilityTest extends UnitTestCase {
  9. /**
  10. * Tests existence of \PHPUnit_Framework_AssertionFailedError.
  11. */
  12. public function testFrameworkAssertionFailedError() {
  13. $this->assertTrue(class_exists('\PHPUnit_Framework_AssertionFailedError'));
  14. }
  15. /**
  16. * Tests existence of \PHPUnit_Framework_Constraint_Count.
  17. */
  18. public function testFrameworkConstraintCount() {
  19. $this->assertTrue(class_exists('\PHPUnit_Framework_Constraint_Count'));
  20. }
  21. /**
  22. * Tests existence of \PHPUnit_Framework_Error.
  23. */
  24. public function testFrameworkError() {
  25. $this->assertTrue(class_exists('\PHPUnit_Framework_Error'));
  26. }
  27. /**
  28. * Tests existence of \PHPUnit_Framework_Error_Warning.
  29. */
  30. public function FrameworkErrorWarning() {
  31. $this->assertTrue(class_exists('\PHPUnit_Framework_Error_Warning'));
  32. }
  33. /**
  34. * Tests existence of \PHPUnit_Framework_Exception.
  35. */
  36. public function testFrameworkException() {
  37. $this->assertTrue(class_exists('\PHPUnit_Framework_Exception'));
  38. }
  39. /**
  40. * Tests existence of \PHPUnit_Framework_ExpectationFailedException.
  41. */
  42. public function testFrameworkExpectationFailedException() {
  43. $this->assertTrue(class_exists('\PHPUnit_Framework_ExpectationFailedException'));
  44. }
  45. /**
  46. * Tests existence of \PHPUnit_Framework_MockObject_Matcher_InvokedRecorder.
  47. */
  48. public function testFrameworkMockObjectMatcherInvokedRecorder() {
  49. $this->assertTrue(class_exists('\PHPUnit_Framework_MockObject_Matcher_InvokedRecorder'));
  50. }
  51. /**
  52. * Tests existence of \PHPUnit_Framework_SkippedTestError.
  53. */
  54. public function testFrameworkSkippedTestError() {
  55. $this->assertTrue(class_exists('\PHPUnit_Framework_SkippedTestError'));
  56. }
  57. /**
  58. * Tests existence of \PHPUnit_Framework_TestCase.
  59. */
  60. public function testFrameworkTestCase() {
  61. $this->assertTrue(class_exists('\PHPUnit_Framework_TestCase'));
  62. }
  63. /**
  64. * Tests existence of \PHPUnit_Util_Test.
  65. */
  66. public function testUtilTest() {
  67. $this->assertTrue(class_exists('\PHPUnit_Util_Test'));
  68. }
  69. /**
  70. * Tests existence of \PHPUnit_Util_XML.
  71. */
  72. public function testUtilXml() {
  73. $this->assertTrue(class_exists('\PHPUnit_Util_XML'));
  74. }
  75. }