diff --git a/src/Node/File.php b/src/Node/File.php index 342f066..a8c6c2d 100644 --- a/src/Node/File.php +++ b/src/Node/File.php @@ -103,12 +103,4 @@ class File implements FileInterface { return strlen($this->content); } - - /** - * {@inheritdoc} - */ - public function __toString() - { - return $this->content; - } } diff --git a/src/Node/FileInterface.php b/src/Node/FileInterface.php index 6b38868..7e7eeb3 100644 --- a/src/Node/FileInterface.php +++ b/src/Node/FileInterface.php @@ -20,9 +20,4 @@ interface FileInterface extends NodeInterface * @param string $content */ public function setContent($content); - - /** - * @return string The file content - */ - public function __toString(); } diff --git a/test/unit/Node/FileTest.php b/test/unit/Node/FileTest.php index c6c7d56..d92ea82 100644 --- a/test/unit/Node/FileTest.php +++ b/test/unit/Node/FileTest.php @@ -29,13 +29,6 @@ class FileTest extends UnitTestCase $this->assertEquals('foo', $file->getContent()); } - public function testToString() - { - $file = new File('foo'); - - $this->assertEquals('foo', (string) $file); - } - public function testGetDateAccessed() { $file = new File();