Skip to content

Commit

Permalink
more syntax corrections in CollectionTest
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabywalters committed Dec 9, 2012
1 parent cd6e7c1 commit 5fb28d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/CollectionTest.php
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5fb28d6

Please sign in to comment.