Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit fe5e300

Browse files
committed
Adds unit tests for isLast method in Zend_Service_Amazon_SimpleDb_Page
1 parent 47f2b59 commit fe5e300

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/Zend/Service/Amazon/SimpleDb/PageTest.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,23 @@ public function testSetTokenDoesNotAcceptsEmptyStrings()
8080
$this->assertNull($this->page->getToken());
8181
}
8282

83+
public function testIsLastShouldReturnTrueWhenNoTokenIsSet()
84+
{
85+
$this->assertTrue($this->page->isLast());
86+
}
87+
88+
public function testIsLastShouldReturnFalseWhenTokenIsSet()
89+
{
90+
$this->page->setToken('token');
91+
$this->assertFalse($this->page->isLast());
92+
}
93+
94+
public function testIsLastShouldReturnTrueWhenTokenIsRemoved()
95+
{
96+
$this->page->setToken('');
97+
$this->assertTrue($this->page->isLast());
98+
}
99+
83100
public function testToStringMethod()
84101
{
85102
$this->page->setData('data');

0 commit comments

Comments
 (0)