Permalink
Browse files

added the get prefix to a couple of functions

  • Loading branch information...
1 parent 9e40513 commit 233864af2417439911fda05c7215b540dba88bf7 @pablodip pablodip committed Apr 10, 2013
Showing with 12 additions and 12 deletions.
  1. +4 −4 src/Pagerfanta/Pagerfanta.php
  2. +8 −8 tests/Pagerfanta/Tests/PagerfantaTest.php
@@ -74,7 +74,7 @@ public function setAllowOutOfRangePages($value)
*
* @return Boolean
*/
- public function allowOutOfRangePages()
+ public function getAllowOutOfRangePages()
{
return $this->allowOutOfRangePages;
}
@@ -96,7 +96,7 @@ public function setNormalizeOutOfRangePages($value)
*
* @return Boolean
*/
- public function normalizeOutOfRangePages()
+ public function getNormalizeOutOfRangePages()
{
return $this->normalizeOutOfRangePages;
}
@@ -244,7 +244,7 @@ private function filterOutOfRangeCurrentPage($currentPage)
private function notAllowedCurrentPageOutOfRange($currentPage)
{
- return !$this->allowOutOfRangePages() &&
+ return !$this->getAllowOutOfRangePages() &&
$this->currentPageOutOfRange($currentPage);
}
@@ -255,7 +255,7 @@ private function currentPageOutOfRange($currentPage)
private function normalizeOutOfRangeCurrentPage($currentPage)
{
- if ($this->normalizeOutOfRangePages()) {
+ if ($this->getNormalizeOutOfRangePages()) {
return $this->getNbPages();
}
@@ -53,21 +53,21 @@ public function testGetAdapterShouldReturnTheAdapter()
$this->assertSame($this->adapter, $this->pagerfanta->getAdapter());
}
- public function testAllowOutOfRangePagesShouldBeFalseByDefault()
+ public function testGetAllowOutOfRangePagesShouldBeFalseByDefault()
{
- $this->assertFalse($this->pagerfanta->allowOutOfRangePages());
+ $this->assertFalse($this->pagerfanta->getAllowOutOfRangePages());
}
public function testSetAllowOutOfRangePagesShouldSetTrue()
{
$this->pagerfanta->setAllowOutOfRangePages(true);
- $this->assertTrue($this->pagerfanta->allowOutOfRangePages());
+ $this->assertTrue($this->pagerfanta->getAllowOutOfRangePages());
}
public function testSetAllowOutOfRangePagesShouldSetFalse()
{
$this->pagerfanta->setAllowOutOfRangePages(false);
- $this->assertFalse($this->pagerfanta->allowOutOfRangePages());
+ $this->assertFalse($this->pagerfanta->getAllowOutOfRangePages());
}
public function testSetAllowOutOfRangePagesShouldReturnThePagerfanta()
@@ -84,21 +84,21 @@ public function testSetAllowOutOfRangePagesShouldThrowNotBooleanExceptionWhenNot
$this->pagerfanta->setAllowOutOfRangePages($value);
}
- public function testNormalizeOutOfRangePagesShouldBeFalseByDefault()
+ public function testGetNormalizeOutOfRangePagesShouldBeFalseByDefault()
{
- $this->assertFalse($this->pagerfanta->normalizeOutOfRangePages());
+ $this->assertFalse($this->pagerfanta->getNormalizeOutOfRangePages());
}
public function testSetNormalizeOutOfRangePagesShouldSetTrue()
{
$this->pagerfanta->setNormalizeOutOfRangePages(true);
- $this->assertTrue($this->pagerfanta->normalizeOutOfRangePages());
+ $this->assertTrue($this->pagerfanta->getNormalizeOutOfRangePages());
}
public function testSetNormalizeOutOfRangePagesShouldSetFalse()
{
$this->pagerfanta->setNormalizeOutOfRangePages(false);
- $this->assertFalse($this->pagerfanta->normalizeOutOfRangePages());
+ $this->assertFalse($this->pagerfanta->getNormalizeOutOfRangePages());
}
public function testSetNormalizeOutOfRangePagesShouldReturnThePagerfanta()

0 comments on commit 233864a

Please sign in to comment.