Skip to content

Commit

Permalink
Adds unit tests for isLast method in Zend_Service_Amazon_SimpleDb_Page
Browse files Browse the repository at this point in the history
  • Loading branch information
froschdesign committed Dec 1, 2014
1 parent 47f2b59 commit fe5e300
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/Zend/Service/Amazon/SimpleDb/PageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,23 @@ public function testSetTokenDoesNotAcceptsEmptyStrings()
$this->assertNull($this->page->getToken());
}

public function testIsLastShouldReturnTrueWhenNoTokenIsSet()
{
$this->assertTrue($this->page->isLast());
}

public function testIsLastShouldReturnFalseWhenTokenIsSet()
{
$this->page->setToken('token');
$this->assertFalse($this->page->isLast());
}

public function testIsLastShouldReturnTrueWhenTokenIsRemoved()
{
$this->page->setToken('');
$this->assertTrue($this->page->isLast());
}

public function testToStringMethod()
{
$this->page->setData('data');
Expand Down

0 comments on commit fe5e300

Please sign in to comment.