Changeset 8746
- Timestamp:
- 05/03/08 09:47:24 (2 months ago)
- Files:
-
- tools/lime/trunk/lib/lime.php (modified) (1 diff)
- tools/lime/trunk/tests/phpt/can_ok.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/can_ok_fails.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/can_ok_name.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/cmp_ok.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/cmp_ok_fails.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/cmp_ok_name.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/fail.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/fail_name.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/include_ok.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/include_ok_fails.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/include_ok_name.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/is.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/is_deeply.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/is_deeply_fails.phpt (modified) (2 diffs)
- tools/lime/trunk/tests/phpt/is_deeply_name.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/is_fails.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/is_name.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/isa_ok.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/isa_ok_fails.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/isa_ok_name.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/isnt.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/isnt_fails.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/isnt_name.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/like.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/like_fails.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/like_name.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/ok.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/ok_fails.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/ok_name.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/pass.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/pass_name.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/skip.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/skip_name.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/todo.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/todo_name.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/unlike.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/unlike_fails.phpt (modified) (1 diff)
- tools/lime/trunk/tests/phpt/unlike_name.phpt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/lime/trunk/lib/lime.php
r7312 r8746 241 241 ksort($var1); 242 242 ksort($var2); 243 if (array_diff(array_keys($var1), array_keys($var2))) 243 244 $keys1 = array_keys($var1); 245 $keys2 = array_keys($var2); 246 if (array_diff($keys1, $keys2) || array_diff($keys2, $keys1)) 244 247 { 245 248 return false; tools/lime/trunk/tests/phpt/can_ok.phpt
r2063 r8746 10 10 ok 1 11 11 1..1 12 Looks like everything went fine. tools/lime/trunk/tests/phpt/can_ok_fails.phpt
r2063 r8746 12 12 # method 'foo' does not exist 13 13 1..1 14 #Looks like you failed 1 tests of 1.14 Looks like you failed 1 tests of 1. tools/lime/trunk/tests/phpt/can_ok_name.phpt
r2063 r8746 10 10 ok 1 - test name 11 11 1..1 12 Looks like everything went fine. tools/lime/trunk/tests/phpt/cmp_ok.phpt
r2063 r8746 9 9 ok 1 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/cmp_ok_fails.phpt
r2063 r8746 13 13 # 1 14 14 1..1 15 #Looks like you failed 1 tests of 1.15 Looks like you failed 1 tests of 1. tools/lime/trunk/tests/phpt/cmp_ok_name.phpt
r2063 r8746 9 9 ok 1 - test name 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/fail.phpt
r2063 r8746 10 10 # Failed test (./tests/phpt/fail.php at line 3) 11 11 1..1 12 #Looks like you failed 1 tests of 1.12 Looks like you failed 1 tests of 1. tools/lime/trunk/tests/phpt/fail_name.phpt
r2063 r8746 10 10 # Failed test (./tests/phpt/fail_name.php at line 3) 11 11 1..1 12 #Looks like you failed 1 tests of 1.12 Looks like you failed 1 tests of 1. tools/lime/trunk/tests/phpt/include_ok.phpt
r2063 r8746 4 4 <?php 5 5 require_once(dirname(__FILE__).'/setup.php'); 6 $t->include_ok(dirname(__FILE__).'/ setup.php');6 $t->include_ok(dirname(__FILE__).'/include_test.php'); 7 7 ?> 8 8 --EXPECT-- 9 9 ok 1 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/include_ok_fails.phpt
r2063 r8746 11 11 # Tried to include 'foo.php' 12 12 1..1 13 #Looks like you failed 1 tests of 1.13 Looks like you failed 1 tests of 1. tools/lime/trunk/tests/phpt/include_ok_name.phpt
r2063 r8746 4 4 <?php 5 5 require_once(dirname(__FILE__).'/setup.php'); 6 $t->include_ok(dirname(__FILE__).'/ setup.php', 'test name');6 $t->include_ok(dirname(__FILE__).'/include_test.php', 'test name'); 7 7 ?> 8 8 --EXPECT-- 9 9 ok 1 - test name 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/is.phpt
r2063 r8746 9 9 ok 1 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/is_deeply.phpt
r2063 r8746 9 9 ok 1 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/is_deeply_fails.phpt
r2063 r8746 5 5 require_once(dirname(__FILE__).'/setup.php'); 6 6 $t->is_deeply(array(1, 2, array(1 => 'foo', 'a' => '4')), array(1, 2, array(1 => 'bar', 'a' => '4'))); 7 $t->is_deeply(array(1, 2, 3), array()); 8 $t->is_deeply(array(), array(1, 2, 3)); 7 9 ?> 8 10 --EXPECT-- … … 11 13 # got: array ( 0 => 1, 1 => 2, 2 => array ( 1 => 'foo', 'a' => '4', ),) 12 14 # expected: array ( 0 => 1, 1 => 2, 2 => array ( 1 => 'bar', 'a' => '4', ),) 13 1..1 14 # Looks like you failed 1 tests of 1. 15 not ok 2 16 # Failed test (./tests/phpt/is_deeply_fails.php at line 4) 17 # got: array ( 0 => 1, 1 => 2, 2 => 3,) 18 # expected: array () 19 not ok 3 20 # Failed test (./tests/phpt/is_deeply_fails.php at line 5) 21 # got: array () 22 # expected: array ( 0 => 1, 1 => 2, 2 => 3,) 23 1..3 24 Looks like you failed 3 tests of 3. tools/lime/trunk/tests/phpt/is_deeply_name.phpt
r2063 r8746 9 9 ok 1 - test name 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/is_fails.phpt
r2063 r8746 12 12 # expected: true 13 13 1..1 14 #Looks like you failed 1 tests of 1.14 Looks like you failed 1 tests of 1. tools/lime/trunk/tests/phpt/is_name.phpt
r2063 r8746 9 9 ok 1 - test name 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/isa_ok.phpt
r2063 r8746 10 10 ok 1 11 11 1..1 12 Looks like everything went fine. tools/lime/trunk/tests/phpt/isa_ok_fails.phpt
r2063 r8746 12 12 # isa_ok isn't a 'Foo' it's a 'Test' 13 13 1..1 14 #Looks like you failed 1 tests of 1.14 Looks like you failed 1 tests of 1. tools/lime/trunk/tests/phpt/isa_ok_name.phpt
r2063 r8746 10 10 ok 1 - test name 11 11 1..1 12 Looks like everything went fine. tools/lime/trunk/tests/phpt/isnt.phpt
r2063 r8746 9 9 ok 1 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/isnt_fails.phpt
r2063 r8746 13 13 # false 14 14 1..1 15 #Looks like you failed 1 tests of 1.15 Looks like you failed 1 tests of 1. tools/lime/trunk/tests/phpt/isnt_name.phpt
r2063 r8746 9 9 ok 1 - test name 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/like.phpt
r2063 r8746 9 9 ok 1 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/like_fails.phpt
r2063 r8746 12 12 # doesn't match '/test\d+/' 13 13 1..1 14 #Looks like you failed 1 tests of 1.14 Looks like you failed 1 tests of 1. tools/lime/trunk/tests/phpt/like_name.phpt
r2063 r8746 9 9 ok 1 - test name 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/ok.phpt
r2063 r8746 9 9 ok 1 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/ok_fails.phpt
r2063 r8746 10 10 # Failed test (./tests/phpt/ok_fails.php at line 3) 11 11 1..1 12 #Looks like you failed 1 tests of 1.12 Looks like you failed 1 tests of 1. tools/lime/trunk/tests/phpt/ok_name.phpt
r2063 r8746 9 9 ok 1 - test name 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/pass.phpt
r2063 r8746 9 9 ok 1 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/pass_name.phpt
r2063 r8746 9 9 ok 1 - test name 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/skip.phpt
r2063 r8746 9 9 ok 1 # SKIP 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/skip_name.phpt
r2063 r8746 10 10 ok 2 # SKIP test name 11 11 1..2 12 Looks like everything went fine. tools/lime/trunk/tests/phpt/todo.phpt
r2063 r8746 9 9 ok 1 # TODO 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/todo_name.phpt
r2063 r8746 9 9 ok 1 # TODO test name 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/unlike.phpt
r2063 r8746 9 9 ok 1 10 10 1..1 11 Looks like everything went fine. tools/lime/trunk/tests/phpt/unlike_fails.phpt
r2063 r8746 12 12 # matches '/test\d+/' 13 13 1..1 14 #Looks like you failed 1 tests of 1.14 Looks like you failed 1 tests of 1. tools/lime/trunk/tests/phpt/unlike_name.phpt
r2063 r8746 9 9 ok 1 - test name 10 10 1..1 11 Looks like everything went fine.