public function testCreateFromDataWhereDataHasTrailingEndline() { $data = file_get_contents(__DIR__ . '/Fixtures/fixed_width_trailing_newline.txt'); $lines = explode("\n", $data); array_pop($lines); $this->assertEquals(new InMemoryFile('fixed_width_trailing_newline.txt', strlen($lines[0]), $lines, "\n"), $this->factory->createFromData($data, 'fixed_width_trailing_newline.txt', "\n")); }
public function createFromDataAndSpec($data, $name, $specName) { return parent::createFromData($data, $name, $this->specLoader->loadSpec($specName)->getLineSeparator()); }