This commit is contained in:
Antonio Spinelli
2014-04-16 17:59:03 -03:00
parent da35c96b90
commit fc3b6a1608
25 changed files with 65 additions and 64 deletions

View File

@@ -13,7 +13,7 @@ class BookList implements \Countable
return $this->books[$bookNumberToGet];
}
return NULL;
return null;
}
public function addBook(Book $book)

View File

@@ -74,4 +74,4 @@ class BookListIterator implements \Iterator
{
$this->currentBook = 0;
}
}
}

View File

@@ -20,4 +20,4 @@ class BookListReverseIterator extends BookListIterator
{
return 0 <= $this->currentBook;
}
}
}

View File

@@ -63,4 +63,4 @@ class IteratorTest extends \PHPUnit_Framework_TestCase
$iterator->next();
}
}
}
}