class Phpunit4CompatibilityTest in Drupal 8
Tests existence of the PHPUnit4 backward compatibility classes.
@group Tests
Hierarchy
- class \Drupal\Tests\UnitTestCase extends \PHPUnit\Framework\TestCase uses PhpunitCompatibilityTrait
- class \Drupal\Tests\Phpunit4CompatibilityTest
Expanded class hierarchy of Phpunit4CompatibilityTest
File
- core/
tests/ Drupal/ Tests/ Phpunit4CompatibilityTest.php, line 10
Namespace
Drupal\TestsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Phpunit4CompatibilityTest:: |
public | function | Tests existence of \PHPUnit_Framework_Error_Warning. | |
Phpunit4CompatibilityTest:: |
public | function | Tests existence of \PHPUnit_Framework_AssertionFailedError. | |
Phpunit4CompatibilityTest:: |
public | function | Tests existence of \PHPUnit_Framework_Constraint_Count. | |
Phpunit4CompatibilityTest:: |
public | function | Tests existence of \PHPUnit_Framework_Error. | |
Phpunit4CompatibilityTest:: |
public | function | Tests existence of \PHPUnit_Framework_Exception. | |
Phpunit4CompatibilityTest:: |
public | function | Tests existence of \PHPUnit_Framework_ExpectationFailedException. | |
Phpunit4CompatibilityTest:: |
public | function | Tests existence of \PHPUnit_Framework_MockObject_Matcher_InvokedRecorder. | |
Phpunit4CompatibilityTest:: |
public | function | Tests existence of \PHPUnit_Framework_SkippedTestError. | |
Phpunit4CompatibilityTest:: |
public | function | Tests existence of \PHPUnit_Framework_TestCase. | |
Phpunit4CompatibilityTest:: |
public | function | Tests existence of \PHPUnit_Util_Test. | |
Phpunit4CompatibilityTest:: |
public | function | Tests existence of \PHPUnit_Util_XML. | |
PhpunitCompatibilityTrait:: |
public | function | Returns a mock object for the specified class using the available method. | |
PhpunitCompatibilityTrait:: |
public | function | Compatibility layer for PHPUnit 6 to support PHPUnit 4 code. | |
UnitTestCase:: |
protected | property | The random generator. | |
UnitTestCase:: |
protected | property | The app root. | 1 |
UnitTestCase:: |
protected | function | Asserts if two arrays are equal by sorting them first. | |
UnitTestCase:: |
protected | function | Mocks a block with a block plugin. | 1 |
UnitTestCase:: |
protected | function | Returns a stub class resolver. | |
UnitTestCase:: |
public | function | Returns a stub config factory that behaves according to the passed array. | |
UnitTestCase:: |
public | function | Returns a stub config storage that returns the supplied configuration. | |
UnitTestCase:: |
protected | function | Sets up a container with a cache tags invalidator. | |
UnitTestCase:: |
protected | function | Gets the random generator for the utility methods. | |
UnitTestCase:: |
public | function | Returns a stub translation manager that just returns the passed string. | |
UnitTestCase:: |
public | function | Generates a unique random string containing letters and numbers. | |
UnitTestCase:: |
protected | function | 340 |