/** * @covers phpDocumentor\GraphViz\Graph::__set * @todo Implement test__set(). */ public function test__set() { $mock = $this->getMock('phpDocumentor\\GraphViz\\Node', array(), array(), '', false); $mock->expects($this->any())->method('getName')->will($this->returnValue('MyName')); $this->assertSame($this->fixture, $this->fixture->__set('myNode', $mock)); }