Permalink
Browse files

more syntax corrections in CollectionTest

  • Loading branch information...
1 parent cd6e7c1 commit 5fb28d62d1631ffd4e125850b7a7145d6397ded8 @barnabywalters committed Dec 9, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 tests/CollectionTest.php
View
@@ -49,8 +49,8 @@ public function testOrderingItemsByDatePublishedWorks() {
for ($i = 0; $i < 9; $i++) {
$a[$i] = new Activity();
- $a[$i]->published = DateTime::createFromFormat('Y-m-d', '2012-11-0' . $i);
- $a[$i]->displayName = 'Activity number ' . $i;
+ $a[$i]['published'] = DateTime::createFromFormat('Y-m-d', '2012-11-0' . $i);
+ $a[$i]['displayName'] = 'Activity number ' . $i;
}
// Create a shuffled version of the array
@@ -74,8 +74,8 @@ public function testOrderingItemsByDatePublishedDescWorks() {
for ($i = 0; $i < 9; $i++) {
$a[$i] = new Activity();
- $a[$i]->published = DateTime::createFromFormat('Y-m-d', '2012-11-0' . $i);
- $a[$i]->displayName = 'Activity number ' . $i;
+ $a[$i]['published'] = DateTime::createFromFormat('Y-m-d', '2012-11-0' . $i);
+ $a[$i]['displayName'] = 'Activity number ' . $i;
}
// Create a shuffled version of the array
@@ -100,7 +100,7 @@ public function testOrderingItemsByDisplayNameWorks() {
for ($i = 0; $i < 9; $i++) {
$a[$i] = new Activity();
- $a[$i]->displayName = $alphabet[$i];
+ $a[$i]['displayName'] = $alphabet[$i];
}
// Create a shuffled version of the array

0 comments on commit 5fb28d6

Please sign in to comment.