public function FeedsFetcherResultTest::testSerializing in Feeds 7.2
Tests if the raw data is not saved when the object gets serialized.
File
- tests/
FeedsFetcherResultTest.test, line 239
Class
- FeedsFetcherResultTest
- @coversDefaultClass FeedsFetcherResult @group feeds
Code
public function testSerializing() {
$serialized = serialize($this->fetcherResult);
$this
->assertFalse(strpos($serialized, $this->raw), 'The raw result does not appear in the serialized data.');
// But ensure that the fetcher result *does* still return the raw data.
$this
->assertEqual($this->raw, $this->fetcherResult
->getRaw());
}