function DateTimePlusTest::testCheckArray

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php \Drupal\Tests\Component\Datetime\DateTimePlusTest::testCheckArray()
  2. 8.9.x core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php \Drupal\Tests\Component\Datetime\DateTimePlusTest::testCheckArray()
  3. 11.x core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php \Drupal\Tests\Component\Datetime\DateTimePlusTest::testCheckArray()

Tests DateTimePlus::checkArray().

@dataProvider providerTestCheckArray

Parameters

array $array: Input argument for DateTimePlus::checkArray().

bool $expected: The expected result of DateTimePlus::checkArray().

File

core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php, line 127

Class

DateTimePlusTest
@coversDefaultClass \Drupal\Component\Datetime\DateTimePlus @group Datetime

Namespace

Drupal\Tests\Component\Datetime

Code

public function testCheckArray(array $array, $expected) : void {
    $this->assertSame($expected, DateTimePlus::checkArray($array));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.