You are here

protected function ViewsDataExportBaseTest::normaliseString in Views data export 7.4

Same name and namespace in other branches
  1. 7.3 tests/base.test \ViewsDataExportBaseTest::normaliseString()
2 calls to ViewsDataExportBaseTest::normaliseString()
ViewsDataExportBaseTest::assertBatchedExportEqual in tests/base.test
ViewsDataExportBaseTest::assertExportEqual in tests/base.test

File

tests/base.test, line 320

Class

ViewsDataExportBaseTest

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;
}