You are here

public function FetcherResultTest::testGetRaw in Feeds 8.3

@covers ::getRaw

File

tests/src/Unit/Result/FetcherResultTest.php, line 18

Class

FetcherResultTest
@coversDefaultClass \Drupal\feeds\Result\FetcherResult @group feeds

Namespace

Drupal\Tests\feeds\Unit\Result

Code

public function testGetRaw() {
  file_put_contents('vfs://feeds/test_file', pack('CCC', 0xef, 0xbb, 0xbf) . 'I am test data.');
  $result = new FetcherResult('vfs://feeds/test_file');
  $this
    ->assertSame('I am test data.', $result
    ->getRaw());
}