protected function ViewsDataExportBaseTest::normaliseString in Views data export 7.3
Same name and namespace in other branches
- 7.4 tests/base.test \ViewsDataExportBaseTest::normaliseString()
3 calls to ViewsDataExportBaseTest::normaliseString()
- ViewsDataExportAccessTest::testExportedTempFileAccess in tests/
access.test - Test that VDE export can only be downloaded by the user that created them.
- ViewsDataExportBaseTest::assertBatchedExportEqual in tests/
base.test - ViewsDataExportBaseTest::assertExportEqual in tests/
base.test
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;
}