TysonAndre / pecl-teds

Tentative Extra Data Structures for php
BSD 3-Clause "New" or "Revised" License
30 stars 4 forks source link

relax test expectations for 8.3 #204

Closed remicollet closed 1 year ago

remicollet commented 1 year ago

Without:

========DIFF========
     *** Testing not enough or wrong arguments ***
     Caught ArgumentCountError: Teds\all() expects at least 1 argument, 0 given
003- Caught TypeError: Teds\all(): Argument #1 ($iterable) must be of type %s, bool given
003+ Caught TypeError: Teds\all(): Argument #1 ($iterable) must be of type Traversable|array, true given
     bool(true)
005- Caught TypeError: Teds\all(): Argument #1 ($iterable) must be of type %s, bool given
005+ Caught TypeError: Teds\all(): Argument #1 ($iterable) must be of type Traversable|array, true given
     Caught TypeError: Teds\all(): Argument #2 ($callback) must be a valid callback%S, no array or string given

     *** Testing basic functionality ***
--
========DONE========
FAIL Test all() function [tests/iterable/all_array.phpt] 

========DIFF========
     *** Testing not enough or wrong arguments ***
     Caught ArgumentCountError: Teds\any() expects at least 1 argument, 0 given
003- Caught TypeError: Teds\any(): Argument #1 ($iterable) must be of type %s, bool given
003+ Caught TypeError: Teds\any(): Argument #1 ($iterable) must be of type Traversable|array, true given
     bool(false)
005- Caught TypeError: Teds\any(): Argument #1 ($iterable) must be of type %s, bool given
005+ Caught TypeError: Teds\any(): Argument #1 ($iterable) must be of type Traversable|array, true given
     Caught TypeError: Teds\any(): Argument #2 ($callback) must be a valid callback%S, no array or string given

     *** Testing basic functionality ***
--
========DONE========
FAIL Test any() function [tests/iterable/any_array.phpt] 

========DIFF========
     *** Testing not enough or wrong arguments ***
     Caught ArgumentCountError: Teds\none() expects at least 1 argument, 0 given
003- Caught TypeError: Teds\none(): Argument #1 ($iterable) must be of type %s, bool given
003+ Caught TypeError: Teds\none(): Argument #1 ($iterable) must be of type Traversable|array, true given
     bool(true)
005- Caught TypeError: Teds\none(): Argument #1 ($iterable) must be of type %s, bool given
005+ Caught TypeError: Teds\none(): Argument #1 ($iterable) must be of type Traversable|array, true given
     Caught TypeError: Teds\none(): Argument #2 ($callback) must be a valid callback%S, no array or string given

     *** Testing basic functionality ***
--
========DONE========
FAIL Test none() function [tests/iterable/none_array.phpt] 

--
       ["v_abc"]=>
       string(3) "v_x"
     }
009- Caught: Illegal offset type
009+ Caught: Cannot access offset of type array on array
     Test Teds\StrictTreeMap
     array(2) {
       ["def"]=>
--
       ["v_abc"]=>
       string(3) "v_x"
     }
018- Caught: Illegal offset type
018+ Caught: Cannot access offset of type array on array
     Test Teds\StrictHashMap
     array(2) {
       ["v_abc"]=>
--
       object(stdClass)#2 (0) {
       }
     }
027- Caught: Illegal offset type
027+ Caught: Cannot access offset of type array on array
========DONE========
FAIL Teds\Collection toArray() [tests/Map/toArray.phpt]