Skip to content

Commit

Permalink
Merge pull request #33 from symfony-cmf/remove_to_string
Browse files Browse the repository at this point in the history
remove reliance on __toString()
  • Loading branch information
dbu committed Sep 2, 2013
2 parents b7dd902 + 7ae70a8 commit 4784262
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
5 changes: 0 additions & 5 deletions Document/Blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,4 @@ public function getSubRoutes($routeClass)

return $subRoutes;
}

public function __toString()
{
return (string) $this->name;
}
}
5 changes: 0 additions & 5 deletions Document/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,6 @@ public function getRoutes()
return $this->routes;
}

public function __toString()
{
return (string) $this->title;
}

public function isPublishable()
{
return $this->isPublishable;
Expand Down
2 changes: 2 additions & 0 deletions Tests/Unit/Tagging/TagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

class TagTest extends \PHPUnit_Framework_TestCase
{
private $tag;

public function setUp()
{
$blog = $this->getMock('Symfony\Cmf\Bundle\BlogBundle\Document\Blog');
Expand Down

0 comments on commit 4784262

Please sign in to comment.