function ArrayDiffUnitTest::setUp
Overrides DrupalUnitTestCase::setUp
File
-
modules/
simpletest/ tests/ common.test, line 3318
Class
- ArrayDiffUnitTest
- Test array diff functions.
Code
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',
),
);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.