From 1ad2044b80cb87dc8f2656b706777582cc83ff02 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 31 Aug 2009 15:32:39 +0000 Subject: [PATCH] nuke duplicated tests --- .../SplDoublyLinkedList_shift_noParams.phpt | 15 ----------- ...SplDoublylinkedlist_offsetunset_first.phpt | 25 ------------------- .../SplFixedarray_offsetExists_larger.phpt | 15 ----------- ...doublylinkedlist_offsetunset_first002.phpt | 17 ------------- .../spldoublylinkedlist_offsetunset_last.phpt | 25 ------------------- 5 files changed, 97 deletions(-) delete mode 100644 ext/spl/tests/SplDoublyLinkedList_shift_noParams.phpt delete mode 100644 ext/spl/tests/SplDoublylinkedlist_offsetunset_first.phpt delete mode 100644 ext/spl/tests/SplFixedarray_offsetExists_larger.phpt delete mode 100644 ext/spl/tests/spldoublylinkedlist_offsetunset_first002.phpt delete mode 100644 ext/spl/tests/spldoublylinkedlist_offsetunset_last.phpt diff --git a/ext/spl/tests/SplDoublyLinkedList_shift_noParams.phpt b/ext/spl/tests/SplDoublyLinkedList_shift_noParams.phpt deleted file mode 100644 index cd4ea5b033e..00000000000 --- a/ext/spl/tests/SplDoublyLinkedList_shift_noParams.phpt +++ /dev/null @@ -1,15 +0,0 @@ ---TEST-- -Checks that the shift() method of DoublyLinkedList does not accept args. ---CREDITS-- -PHPNW Test Fest 2009 - Rick Ogden ---FILE-- -push(1); -$ll->push(2); - -var_dump($ll->shift(1)); -?> ---EXPECTF-- -Warning: SplDoublyLinkedList::shift() expects exactly 0 parameters, 1 given in %s on line %d -NULL diff --git a/ext/spl/tests/SplDoublylinkedlist_offsetunset_first.phpt b/ext/spl/tests/SplDoublylinkedlist_offsetunset_first.phpt deleted file mode 100644 index 4dce4db8deb..00000000000 --- a/ext/spl/tests/SplDoublylinkedlist_offsetunset_first.phpt +++ /dev/null @@ -1,25 +0,0 @@ ---TEST-- -SPL: SplDoublyLinkedList : offsetUnset - first element ---CREDITS-- -PHPNW TestFest2009 - Rowan Merewood ---FILE-- -push('oh'); -$list->push('hai'); -$list->push('thar'); -$list->offsetUnset(0); -var_dump($list); -?> ---EXPECTF-- -object(SplDoublyLinkedList)#1 (2) { - [%u|b%"flags":%u|b%"SplDoublyLinkedList":private]=> - int(0) - [%u|b%"dllist":%u|b%"SplDoublyLinkedList":private]=> - array(2) { - [0]=> - %string|unicode%(3) "hai" - [1]=> - %string|unicode%(4) "thar" - } -} diff --git a/ext/spl/tests/SplFixedarray_offsetExists_larger.phpt b/ext/spl/tests/SplFixedarray_offsetExists_larger.phpt deleted file mode 100644 index 9449d64d8d2..00000000000 --- a/ext/spl/tests/SplFixedarray_offsetExists_larger.phpt +++ /dev/null @@ -1,15 +0,0 @@ ---TEST-- -Checks that offsetExists() does not accept a value larger than the array. ---CREDITS-- - PHPNW Test Fest 2009 - Rick Ogden ---FILE-- -offsetExists(4)); -?> ---EXPECT-- -bool(false) diff --git a/ext/spl/tests/spldoublylinkedlist_offsetunset_first002.phpt b/ext/spl/tests/spldoublylinkedlist_offsetunset_first002.phpt deleted file mode 100644 index a42e6f90402..00000000000 --- a/ext/spl/tests/spldoublylinkedlist_offsetunset_first002.phpt +++ /dev/null @@ -1,17 +0,0 @@ ---TEST-- -SPL: SplDoublyLinkedList : offsetUnset - first element ---CREDITS-- -PHPNW TestFest2009 - Rowan Merewood ---FILE-- -push('oh'); -$list->push('hai'); -$list->push('thar'); -echo $list->bottom() . "\n"; -$list->offsetUnset(0); -echo $list->bottom() . "\n"; -?> ---EXPECT-- -oh -hai diff --git a/ext/spl/tests/spldoublylinkedlist_offsetunset_last.phpt b/ext/spl/tests/spldoublylinkedlist_offsetunset_last.phpt deleted file mode 100644 index 0f5dac19f9c..00000000000 --- a/ext/spl/tests/spldoublylinkedlist_offsetunset_last.phpt +++ /dev/null @@ -1,25 +0,0 @@ ---TEST-- -SPL: SplDoublyLinkedList : offsetUnset - last element ---CREDITS-- -PHPNW TestFest2009 - Rowan Merewood ---FILE-- -push('oh'); -$list->push('hai'); -$list->push('thar'); -$list->offsetUnset(2); -var_dump($list); -?> ---EXPECTF-- -object(SplDoublyLinkedList)#1 (2) { - [%u|b%"flags":%u|b%"SplDoublyLinkedList":private]=> - int(0) - [%u|b%"dllist":%u|b%"SplDoublyLinkedList":private]=> - array(2) { - [0]=> - %string|unicode%(2) "oh" - [1]=> - %string|unicode%(3) "hai" - } -}