Example #1
0
 /**
  * Tests the magic __call method, to work as described, return the object
  * instance for a setX method, return the value for an getX method, and null
  * for the remaining method calls
  *
  * @covers phpDocumentor\GraphViz\Node::__call
  *
  * @return void
  */
 public function testCall()
 {
     $fontname = 'Bitstream Vera Sans';
     $this->assertInstanceOf('phpDocumentor\\GraphViz\\Node', $this->fixture->setfontname($fontname));
     $this->assertSame($fontname, $this->fixture->getfontname()->getValue());
     $this->assertNull($this->fixture->someNonExistingMethod());
 }