Changeset 42343 for trunk/tests/phpunit/tests/option/option.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/option/option.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/option.php
r39556 r42343 11 11 12 12 function test_the_basics() { 13 $key = 'key1';14 $key2 = 'key2';15 $value = 'value1';13 $key = 'key1'; 14 $key2 = 'key2'; 15 $value = 'value1'; 16 16 $value2 = 'value2'; 17 17 … … 73 73 74 74 function test_serialized_data() { 75 $key = __FUNCTION__; 76 $value = array( 'foo' => true, 'bar' => true ); 75 $key = __FUNCTION__; 76 $value = array( 77 'foo' => true, 78 'bar' => true, 79 ); 77 80 78 81 $this->assertTrue( add_option( $key, $value ) ); … … 115 118 function data_option_autoloading() { 116 119 return array( 117 array( 'autoload_yes', 'yes','yes' ),118 array( 'autoload_true', true,'yes' ),119 array( 'autoload_string', 'foo', 'yes' ),120 array( 'autoload_int', 123456,'yes' ),121 array( 'autoload_array', array(), 'yes' ),122 array( 'autoload_no', 'no', 'no'),123 array( 'autoload_false', false, 'no'),120 array( 'autoload_yes', 'yes', 'yes' ), 121 array( 'autoload_true', true, 'yes' ), 122 array( 'autoload_string', 'foo', 'yes' ), 123 array( 'autoload_int', 123456, 'yes' ), 124 array( 'autoload_array', array(), 'yes' ), 125 array( 'autoload_no', 'no', 'no' ), 126 array( 'autoload_false', false, 'no' ), 124 127 ); 125 128 }
Note: See TracChangeset
for help on using the changeset viewer.