From 7313dcc07e545d805ac8b09b085cb436d2990306 Mon Sep 17 00:00:00 2001 From: "Daniel St. Jules" Date: Sun, 2 Feb 2014 16:10:06 -0500 Subject: [PATCH] Fix failing tests, remove PHP 5.4 short array syntax --- README.md | 2 +- tests/Stringy/StringyTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c04d50d..13e3983 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ echo S::swapCase($string, 'UTF-8'); // 'fÒÔ bÀŘ' ## Implemented Interfaces -`Stringy\Stringy` implements the IteratorAggregate interface. This allows you +`Stringy\Stringy` implements the `IteratorAggregate` interface. This allows you to use `foreach` with an instance of the class: ``` php diff --git a/tests/Stringy/StringyTest.php b/tests/Stringy/StringyTest.php index 2801695..a0429cc 100644 --- a/tests/Stringy/StringyTest.php +++ b/tests/Stringy/StringyTest.php @@ -74,12 +74,12 @@ class StringyTestCase extends CommonTest { $stringy = S::create('Fòô Bàř', 'UTF-8'); - $valResult = []; + $valResult = array(); foreach ($stringy as $char) { $valResult[] = $char; } - $keyValResult = []; + $keyValResult = array(); foreach ($stringy as $pos => $char) { $keyValResult[$pos] = $char; }