Skip to content

Commit

Permalink
Zend\View\Helper\Navigation - fix Windows newline issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mhujer committed Jul 5, 2012
1 parent 0162748 commit fc2e11e
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Zend/View/Helper/Navigation/AbstractTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ protected function setUp()
}

/**
* Returns the contens of the exepcted $file
* Returns the contens of the expected $file
* @param string $file
* @return string
*/
Expand Down
10 changes: 10 additions & 0 deletions tests/Zend/View/Helper/Navigation/LinksTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -729,4 +729,14 @@ public function testSetMinDepth()

$this->assertEquals($expected, $actual);
}

/**
* Returns the contens of the expected $file, normalizes newlines
* @param string $file
* @return string
*/
protected function _getExpected($file)
{
return str_replace("\n", PHP_EOL, parent::_getExpected($file));
}
}
10 changes: 10 additions & 0 deletions tests/Zend/View/Helper/Navigation/MenuTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,4 +496,14 @@ public function testOptionOnlyActiveBranchNoParentsAndBothDepthsSpecified()

$this->assertEquals($expected, $actual);
}

/**
* Returns the contens of the expected $file, normalizes newlines
* @param string $file
* @return string
*/
protected function _getExpected($file)
{
return str_replace("\n", PHP_EOL, parent::_getExpected($file));
}
}
10 changes: 10 additions & 0 deletions tests/Zend/View/Helper/Navigation/NavigationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,4 +420,14 @@ public function testRenderInvisibleItem()

$this->assertTrue(strpos($render, 'p2') !== false);
}

/**
* Returns the contens of the expected $file, normalizes newlines
* @param string $file
* @return string
*/
protected function _getExpected($file)
{
return str_replace("\n", PHP_EOL, parent::_getExpected($file));
}
}

0 comments on commit fc2e11e

Please sign in to comment.