You are here

public function FeedsFetcherResultTest::testSanitizeRawOptimized in Feeds 7.2

@covers FeedsFetcherResult::sanitizeRawOptimized().

File

tests/FeedsFetcherResultTest.test, line 207

Class

FeedsFetcherResultTest
@coversDefaultClass FeedsFetcherResult @group feeds

Code

public function testSanitizeRawOptimized() {
  $raw_result = $this
    ->randomString();
  $raw = static::BOM . $raw_result;
  $fetcher_result = new FeedsFetcherResult($raw);
  $this
    ->assertEqual($raw_result, $fetcher_result
    ->sanitizeRawOptimized($raw));
  $this
    ->assertEqual($raw_result, $raw);
}