You are here

protected function DiffArrayTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Common/DiffArrayTest.php \Drupal\Tests\Core\Common\DiffArrayTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Common/DiffArrayTest.php, line 34
Contains \Drupal\Tests\Core\Common\DiffArrayTest.

Class

DiffArrayTest
Tests the DiffArray helper class.

Namespace

Drupal\Tests\Core\Common

Code

protected function setUp() {
  parent::setUp();
  $this->array1 = array(
    'same' => 'yes',
    'different' => 'no',
    'array_empty_diff' => array(),
    'null' => NULL,
    'int_diff' => 1,
    'array_diff' => array(
      'same' => 'same',
      'array' => array(
        'same' => 'same',
      ),
    ),
    'array_compared_to_string' => array(
      'value',
    ),
    'string_compared_to_array' => 'value',
    'new' => 'new',
  );
  $this->array2 = array(
    'same' => 'yes',
    'different' => 'yes',
    'array_empty_diff' => array(),
    'null' => NULL,
    'int_diff' => '1',
    'array_diff' => array(
      'same' => 'different',
      'array' => array(
        'same' => 'same',
      ),
    ),
    'array_compared_to_string' => 'value',
    'string_compared_to_array' => array(
      'value',
    ),
  );
}