/**
     * Dumps to source code
     *
     * @return string The sourcecode
     */
    public function dump()
    {
        $methods = $this->specification->getMethods();
        $result = '<?php
/*
 * This file is part of PHP Selenium Library.
 * (c) Alexandre Salomé <*****@*****.**>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Selenium;

/**
 * Browser class containing all methods of Selenium Server, with documentation.
 *
 * This class was generated, do not modify it.
 *
 * @author Alexandre Salomé <*****@*****.**>
 */
class GeneratedBrowser extends BaseBrowser
{
';
        foreach ($methods as $method) {
            $result .= $this->dumpMethod($method) . "\n\n";
        }
        $result .= "}\n";
        return $result;
    }