public function testGetRequirements() { $exception =
new RequirementsException('Missing requirements ',
['requirements' =>
static::MISSING_REQUIREMENTS
]);
$this->
assertEquals(['requirements' =>
static::MISSING_REQUIREMENTS
],
$exception->
getRequirements());
} /**
* @covers ::getRequirementsString
* @dataProvider getRequirementsProvider
*/
public function testGetExceptionString($expected,
$message,
$requirements) { $exception =
new RequirementsException($message,
$requirements);
$this->
assertEquals($expected,
$exception->
getRequirementsString());
} /**
* Provides a list of requirements to test.
*/
public static function getRequirementsProvider() { return [ [ 'requirements: random_jackson_pivot.',
'Single Requirement',
['requirements' =>
static::MISSING_REQUIREMENTS
[0
]],
],