{"action":"created","issue":{"url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/1770","labels_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/1770/labels{/name}","comments_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/1770/comments","events_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/1770/events","html_url":"https://github.com/sebastianbergmann/phpunit/issues/1770","id":91687639,"number":1770,"title":"PHPUnit with Selenium, giving error","user":{"login":"suhailrepo","id":6570482,"avatar_url":"https://avatars.githubusercontent.com/u/6570482?v=3","gravatar_id":"","url":"https://api.github.com/users/suhailrepo","html_url":"https://github.com/suhailrepo","followers_url":"https://api.github.com/users/suhailrepo/followers","following_url":"https://api.github.com/users/suhailrepo/following{/other_user}","gists_url":"https://api.github.com/users/suhailrepo/gists{/gist_id}","starred_url":"https://api.github.com/users/suhailrepo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suhailrepo/subscriptions","organizations_url":"https://api.github.com/users/suhailrepo/orgs","repos_url":"https://api.github.com/users/suhailrepo/repos","events_url":"https://api.github.com/users/suhailrepo/events{/privacy}","received_events_url":"https://api.github.com/users/suhailrepo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-29T03:52:33Z","updated_at":"2015-06-30T21:41:44Z","closed_at":null,"body":"Hello,\r\nI got this error while running test cases \r\nArgument #3 (No Value) of PHPUnit_TextUI_ResultPrinter::__construct() must be a value from \"never\", \"auto\" or \"always\".\r\n\r\nI try to give manual value in constructor for the third argument, then its giving another error.\r\n phpunit\\phpunit\\src\\TextUI\\ResultPrinter.php \r\n\r\n    public function __construct($out = null, $verbose = false, $colors = self::COLOR_DEFAULT, $debug = false, $numberOfColumns = 80)\r\n\r\n```php\r\nrequire 'vendor/autoload.php';\r\nclass TestLogin extends PHPUnit_Framework_TestCase{\r\n\t\r\n\t/**\r\n     * @var \\RemoteWebDriver\r\n     */\r\n    protected $webDriver;\r\n\r\n    public function setUp()\r\n    {\r\n        $capabilities = array(\\WebDriverCapabilityType::BROWSER_NAME => 'firefox');\r\n        $this->webDriver = RemoteWebDriver::create('http://localhost:4444/wd/hub', $capabilities);\r\n    }\r\n}\r\n```\r\n\r\nEnviroment:\r\nWindows 7\r\nPHPUnit 3.7.21 by Sebastian Bergmann.\r\nPHP: PHP 5.4.19 (cli)\r\nSelenium: selenium-server-standalone-2.46.0.jar\r\n"},"comment":{"url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/comments/117353554","html_url":"https://github.com/sebastianbergmann/phpunit/issues/1770#issuecomment-117353554","issue_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/1770","id":117353554,"user":{"login":"suhailrepo","id":6570482,"avatar_url":"https://avatars.githubusercontent.com/u/6570482?v=3","gravatar_id":"","url":"https://api.github.com/users/suhailrepo","html_url":"https://github.com/suhailrepo","followers_url":"https://api.github.com/users/suhailrepo/followers","following_url":"https://api.github.com/users/suhailrepo/following{/other_user}","gists_url":"https://api.github.com/users/suhailrepo/gists{/gist_id}","starred_url":"https://api.github.com/users/suhailrepo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suhailrepo/subscriptions","organizations_url":"https://api.github.com/users/suhailrepo/orgs","repos_url":"https://api.github.com/users/suhailrepo/repos","events_url":"https://api.github.com/users/suhailrepo/events{/privacy}","received_events_url":"https://api.github.com/users/suhailrepo/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T21:41:44Z","updated_at":"2015-06-30T21:41:44Z","body":"This is what i got from the trace, thanks\n\n#0  include_once() called at\n[C:\\xampp\\php\\pear\\PHPUnit\\Util\\Fileloader.php:92]\n\n#1  PHPUnit_Util_Fileloader::load(C:\\xampp\\htdocs\\newTDD\\TestLogin.php)\ncalled at [C:\\xampp\\php\\pear\\PHPUnit\\Util\\Fileloader.php:76]\n\n#2\nPHPUnit_Util_Fileloader::checkAndLoad(C:\\xampp\\htdocs\\newTDD\\TestLogin.php)\ncalled at [C:\\xampp\\php\\pear\\PHPUnit\\Runner\\StandardTestSuiteLoader.php:77]\n\n#3  PHPUnit_Runner_StandardTestSuiteLoader->load(TestLogin,\nC:\\xampp\\htdocs\\newTDD\\TestLogin.php) called at\n[C:\\xampp\\php\\pear\\PHPUnit\\Runner\\BaseTestRunner.php\n:168]\n\n#4  PHPUnit_Runner_BaseTestRunner->loadSuiteClass(TestLogin,\nC:\\xampp\\htdocs\\newTDD\\TestLogin.php) called at\n[C:\\xampp\\php\\pear\\PHPUnit\\Runner\\BaseTestRunner.ph\np:104]\n\n#5  PHPUnit_Runner_BaseTestRunner->getTest(TestLogin,\nC:\\xampp\\htdocs\\newTDD\\TestLogin.php, Array ([0] => Test.php,[1] => .phpt))\ncalled at [C:\\xampp\\php\\pear\\P\nHPUnit\\TextUI\\Command.php:150]\n\n#6  PHPUnit_TextUI_Command->run(Array ([0] => C:\\xampp\\php\\phpunit,[1] =>\n--debug,[2] => TestLogin.php), 1) called at\n[C:\\xampp\\php\\pear\\PHPUnit\\TextUI\\Command.\nphp:129]\n\n#7  PHPUnit_TextUI_Command::main() called at [C:\\xampp\\php\\phpunit:46]\nArgument #3 (No Value) of PHPUnit_TextUI_ResultPrinter::__construct() must\nbe a\nvalue from \"never\", \"auto\" or \"always\"\n\n\n*TestLogin.php*\n\n<?php\n\nrequire 'vendor/autoload.php';\ndebug_print_backtrace();\nclass TestLogin extends PHPUnit_Extensions_Selenium2TestCase{\n\n    /**\n     * @var \\RemoteWebDriver\n     */\n    protected $webDriver;\n\n   protected function setUp()\n    {\n        $this->setHost('localhost');\n        $this->setport(4444);\n        $this->setBrowser('firefox');\n        $this->setBrowserUrl('http://localhost/newTDD');\n    }\n\n    public function testHasLoginForm(){\n        $this->url('login.php');\n        $username = $this->byId('username');\n        $password = $this->byId('password');\n\n        $this->assertEquals('suhail',$username);\n        $this->assertEquals('tahir',$password);\n    }\n\n\n}\n\n\nOn 30 June 2015 at 17:01, Sebastian Bergmann <notifications@github.com>\nwrote:\n\n> You have yet to provide a full stacktrace.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/sebastianbergmann/phpunit/issues/1770#issuecomment-116961502>\n> .\n>\n\n\n\n-- \n\n\nMuhammad Suhail Tahir\n+64 22 320 5327\n"}}