Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit b997a3f

Browse files
committed
Merge branch 'feature/37' into develop
Close #37
2 parents 15b1d18 + b54cd3e commit b997a3f

14 files changed

+31
-406
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ before_install:
3636
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
3737

3838
install:
39-
- COMPOSER_ROOT_VERSION=2.8.0 travis_retry composer install --no-interaction --ignore-platform-reqs
39+
- travis_retry composer install --no-interaction --ignore-platform-reqs
4040

4141
script:
4242
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,23 @@ All notable changes to this project will be documented in this file, in reverse
1414

1515
### Removed
1616

17-
- [#33](https://github.com/zendframework/zend-stdlib/pull/20) - removed
17+
- [#33](https://github.com/zendframework/zend-stdlib/pull/33) - removed
1818
deprecated classes
1919
- *All Hydrator classes* see #22.
2020
- `Zend\Stdlib\CallbackHandler` see #35
21+
- [#37](https://github.com/zendframework/zend-stdlib/pull/37) - removed
22+
deprecated classes and polyfills:
23+
- `Zend\Stdlib\DateTime`; this had been deprecated since 2.5, and only
24+
existed as a polyfill for the `createFromISO8601()` support, now standard
25+
in all PHP versions we support.
26+
- `Zend\Stdlib\Exception\InvalidCallbackException`, which was unused since #33.
27+
- `Zend\Stdlib\Guard\GuardUtils`, which duplicated `Zend\Stdlib\Guard\AllGuardsTrait`
28+
to allow usage with pre-PHP 5.4 versions.
29+
- `src/compatibility/autoload.php`, which has been dprecated since 2.5.
30+
- [#37](https://github.com/zendframework/zend-stdlib/pull/37) - removed
31+
unneeded dependencies:
32+
- zend-config (used only in testing ArrayUtils, and the test was redundant)
33+
- zend-serializer (no longer used)
2134

2235
### Fixed
2336

composer.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,10 @@
1616
"php": ">=5.5"
1717
},
1818
"require-dev": {
19-
"zendframework/zend-config": "dev-develop as 2.6.0",
20-
"zendframework/zend-serializer": "~2.5",
2119
"fabpot/php-cs-fixer": "1.7.*",
2220
"phpunit/PHPUnit": "~4.0",
2321
"athletic/athletic": "~0.1"
2422
},
25-
"suggest": {
26-
"zendframework/zend-serializer": "Zend\\Serializer component"
27-
},
28-
"minimum-stability": "dev",
29-
"prefer-stable": true,
3023
"extra": {
3124
"branch-alias": {
3225
"dev-master": "2.7-dev",

src/DateTime.php

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/Exception/InvalidCallbackException.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/Guard/GuardUtils.php

Lines changed: 0 additions & 85 deletions
This file was deleted.

src/compatibility/autoload.php

Lines changed: 0 additions & 14 deletions
This file was deleted.

test/ArrayUtilsTest.php

Lines changed: 16 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
use ArrayObject;
1313
use PHPUnit_Framework_TestCase as TestCase;
1414
use stdClass;
15-
use Zend\Config\Config;
1615
use Zend\Stdlib\ArrayUtils;
1716
use Zend\Stdlib\ArrayUtils\MergeRemoveKey;
17+
use Zend\Stdlib\Parameters;
1818

1919
class ArrayUtilsTest extends TestCase
2020
{
@@ -316,46 +316,23 @@ public function testAllowsRemovingKeys()
316316

317317
public static function validIterators()
318318
{
319-
return [
320-
[[
321-
'foo' => 'bar',
322-
], [
323-
'foo' => 'bar',
324-
]],
325-
[new Config([
326-
'foo' => [
327-
'bar' => [
328-
'baz' => [
329-
'baz' => 'bat',
330-
],
319+
$array = [
320+
'foo' => [
321+
'bar' => [
322+
'baz' => [
323+
'baz' => 'bat',
331324
],
332325
],
333-
]), [
334-
'foo' => [
335-
'bar' => [
336-
'baz' => [
337-
'baz' => 'bat',
338-
],
339-
],
340-
],
341-
]],
342-
[new ArrayObject([
343-
'foo' => [
344-
'bar' => [
345-
'baz' => [
346-
'baz' => 'bat',
347-
],
348-
],
349-
],
350-
]), [
351-
'foo' => [
352-
'bar' => [
353-
'baz' => [
354-
'baz' => 'bat',
355-
],
356-
],
357-
],
358-
]],
326+
],
327+
];
328+
$arrayAccess = new ArrayObject($array);
329+
$toArray = new Parameters($array);
330+
331+
return [
332+
// Description => [input, expected array]
333+
'array' => [$array, $array],
334+
'Traversable' => [$arrayAccess, $array],
335+
'Traversable and toArray' => [$toArray, $array],
359336
];
360337
}
361338

test/DateTimeTest.php

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)