phpunit-selenium
phpunit-selenium copied to clipboard
Deprecated configuration setting "selenium" used
I'm running phpunit with the following phpunit.xml:
<phpunit ...>
<selenium>
<browser name="Firefox" browser="*firefox" />
</selenium>
</phpunit>
But it says:
PHPUnit 4.7.5 by Sebastian Bergmann and contributors.
Warning: Deprecated configuration setting "selenium" used
...
@sebastianbergmann says "it's for you to figure out."
Hi, from the new version of PHPUnit this configuration has been deprecated so we will target a separate XML file. Basically PHPUnit will not support anymore these project-specific XML tags.
So, I take it I'm to delete <selenium>...</selenium> thing and in case of yii add $this->setBrowser('*firefox'); to WebTestCase::setUp. This way I see no warnings. Correct me if I'm wrong.
This is a solution that would work, an additional XML configuration file is possible but I have doubts it's the most modern solution to configuration.
Where is info about deprecation? (in docs)
Here I couldn't find anything. https://phpunit.de/manual/current/en/appendixes.configuration.html
I want to know, which way should be added that "external XML file" with selenium settings.
No other external XML file is supported at the moment. PRs about a modern approach to configure the browsers are welcome, it does not need to be XML.