public function testPNG() { $renderer = new Renderer('/usr/local/bin/dot'); $renderer->png($this->document, './foo.png'); $this->expectOutputString('/usr/local/bin/dot -Tpng ./smrtmp -o./foo.png'); }