Example #1
0
 /**
  * Tests the getting and setting of the name.
  *
  * @covers \phpDocumentor\GraphViz\Node::getName
  * @covers \phpDocumentor\GraphViz\Node::setName
  *
  * @return void
  */
 public function testName()
 {
     $this->assertSame($this->fixture->getName(), 'name', 'Expecting the name to match the initial state');
     $this->assertSame($this->fixture, $this->fixture->setName('otherName'), 'Expecting a fluent interface');
     $this->assertSame($this->fixture->getName(), 'otherName', 'Expecting the name to contain the new value');
 }