3 namespace Drupal\Tests\system\Unit;
5 use Drupal\system\SystemRequirements;
6 use Drupal\Tests\UnitTestCase;
9 * @coversDefaultClass \Drupal\system\SystemRequirements
12 class SystemRequirementsTest extends UnitTestCase {
15 * @covers ::phpVersionWithPdoDisallowMultipleStatements
16 * @dataProvider providerTestPhpVersionWithPdoDisallowMultipleStatements
18 public function testPhpVersionWithPdoDisallowMultipleStatements($version, $expected) {
19 $this->assertEquals($expected, SystemRequirements::phpVersionWithPdoDisallowMultipleStatements($version));
22 public function providerTestPhpVersionWithPdoDisallowMultipleStatements() {
24 $data[] = ['5.4.2', FALSE];
25 $data[] = ['5.4.21', FALSE];
26 $data[] = ['5.5.9', FALSE];
27 $data[] = ['5.5.20', FALSE];
28 $data[] = ['5.5.21', TRUE];
29 $data[] = ['5.5.30', TRUE];
30 $data[] = ['5.6.2', FALSE];
31 $data[] = ['5.6.5', TRUE];
32 $data[] = ['5.5.21', TRUE];