giorgiosironi / phpunit-selenium

Selenium RC integration for PHPUnit
http://www.phpunit.de/
Other
601 stars 271 forks source link

Deprecated configuration setting "selenium" used #346

Open x-yuri opened 9 years ago

x-yuri commented 9 years ago

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."

giorgiosironi commented 9 years ago

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.

x-yuri commented 9 years ago

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.

giorgiosironi commented 9 years ago

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.

JulianVolodia commented 9 years ago

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.

giorgiosironi commented 8 years ago

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.