Skip to content

Commit

Permalink
Remove EOL as currently unused.
Browse files Browse the repository at this point in the history
Signed-off-by: Benoît Burnichon <bburnichon@gmail.com>
  • Loading branch information
bburnichon committed Jul 22, 2014
1 parent b91c2b6 commit 2741c4a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
25 changes: 0 additions & 25 deletions src/Ddeboer/DataImport/Writer/AbstractStreamWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ abstract class AbstractStreamWriter implements WriterInterface
private $stream;
private $closeStreamOnFinish = true;

/** @var string */
private $eol = "\n";

/**
* Constructor
*
Expand Down Expand Up @@ -63,28 +60,6 @@ public function getStream()
return $this->stream;
}

/**
* Set End Of Line string
* @param string $eol
* @return $this
*/
public function setEol($eol)
{
$this->eol = (string) $eol;

return $this;
}

/**
* Get End Of Line string
*
* @return string
*/
public function getEol()
{
return $this->eol;
}

/**
* @inheritdoc
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ public function testSetStream()
$this->assertSame($this->getStream(), $this->writer->getStream());
}

public function testEol()
{
$this->assertSame("\n", $this->writer->getEol());
$this->assertSame($this->writer, $this->writer->setEol("\r\n"));
$this->assertSame("\r\n", $this->writer->getEol());
}

public function testCloseOnFinishIsInhibitable()
{
$this->assertTrue($this->writer->getCloseStreamOnFinish());
Expand Down

0 comments on commit 2741c4a

Please sign in to comment.