Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated configuration setting "selenium" used #346

Open
x-yuri opened this issue Jun 21, 2015 · 5 comments
Open

Deprecated configuration setting "selenium" used #346

x-yuri opened this issue Jun 21, 2015 · 5 comments

Comments

@x-yuri
Copy link

x-yuri commented Jun 21, 2015

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
Copy link
Owner

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
Copy link
Author

x-yuri commented Jul 6, 2015

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
Copy link
Owner

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
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants