Skip to content

Commit

Permalink
Fix registrar collision
Browse files Browse the repository at this point in the history
  • Loading branch information
MGatner authored and michalsn committed Sep 29, 2020
1 parent 0916b94 commit b07b09a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Provides a basic registrar class for testing BaseConfig registration functions.
*/

class Registrar
class TestRegistrar
{

public static function RegistrarConfig()
Expand Down
2 changes: 1 addition & 1 deletion tests/system/Config/BaseConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public function testRecognizesLooseValues()
public function testRegistrars()
{
$config = new \RegistrarConfig();
$config::$registrars = ['\Tests\Support\Config\Registrar'];
$config::$registrars = ['\Tests\Support\Config\TestRegistrar'];
$this->setPrivateProperty($config, 'didDiscovery', true);
$method = $this->getPrivateMethodInvoker($config, 'registerProperties');
$method();
Expand Down

0 comments on commit b07b09a

Please sign in to comment.