Skip to content

Commit

Permalink
Change the namespace of the package
Browse files Browse the repository at this point in the history
This uses a namespace dedicated to the package, which will be better if
we start having other drivers in the Mink namespace instead of mixing
them all in a shared Driver namespace for which we might have conflicts.
  • Loading branch information
stof committed Jun 9, 2023
1 parent 05df553 commit 0640cc2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
},
"autoload": {
"psr-4": {
"Mink\\Driver\\": "src/"
"Mink\\WebdriverClassDriver\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Mink\\Tests\\Driver\\": "tests"
"Mink\\WebdriverClassDriver\\Tests\\": "tests"
}
},
"extra": {
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</testsuites>

<php>
<var name="driver_config_factory" value="Mink\Tests\Driver\WebdriverClassicConfig::getInstance"/>
<var name="driver_config_factory" value="Mink\WebdriverClassDriver\Tests\WebdriverClassicConfig::getInstance"/>
<!--server name="WEB_FIXTURES_HOST" value="http://test.mink.dev" /-->
<!-- MacOS -->
<!--<server name="WEB_FIXTURES_HOST" value="http://docker.for.mac.localhost:8002"/>-->
Expand Down
2 changes: 1 addition & 1 deletion src/WebdriverClassicDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* file that was distributed with this source code.
*/

namespace Mink\Driver;
namespace Mink\WebdriverClassDriver;

use Behat\Mink\Driver\CoreDriver;

Expand Down
4 changes: 2 additions & 2 deletions tests/WebdriverClassicConfig.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Mink\Tests\Driver;
namespace Mink\WebdriverClassDriver\Tests;

use Behat\Mink\Driver\DriverInterface;
use Behat\Mink\Tests\Driver\AbstractConfig;
use Mink\Driver\WebdriverClassicDriver;
use Mink\WebdriverClassDriver\WebdriverClassicDriver;

class WebdriverClassicConfig extends AbstractConfig
{
Expand Down

0 comments on commit 0640cc2

Please sign in to comment.