protected function ViewsDataExportBaseTest::normaliseString in Views data export 7.4
Same name and namespace in other branches
- 7.3 tests/base.test \ViewsDataExportBaseTest::normaliseString()
2 calls to ViewsDataExportBaseTest::normaliseString()
File
- tests/
base.test, line 320
Class
Code
protected function normaliseString($s) {
// Normalize line endings
// Convert all line-endings to UNIX format
$s = str_replace("\r\n", "\n", $s);
$s = str_replace("\r", "\n", $s);
$s = trim($s);
return $s;
}