Ejemplo n.º 1
0
    /**
     * Tests whether the magic __toString method returns a well formatted string
     * as specified in the DOT standard
     *
     * @covers phpDocumentor\GraphViz\Edge::__toString
     *
     * @return void
     */
    public function testToString()
    {
        $this->fixture->setLabel('MyLabel');
        $this->fixture->setWeight(45);
        $dot = <<<DOT
"from" -> "to" [
label="MyLabel"
weight="45"
]
DOT;
        $this->assertSame($dot, (string) $this->fixture);
    }