/** * @covers Kunstmaan\NodeBundle\Entity\Node::__toString */ public function testToString() { $this->object->setId(1); $this->object->setRef(new TestEntity()); $this->assertEquals('node 1, refEntityName: Kunstmaan\\NodeBundle\\Tests\\Entity\\TestEntity', $this->object->__toString()); }