Skip to content

Commit

Permalink
Switch to "yoast/phpunit-polyfills" 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aik099 committed Mar 28, 2024
1 parent 5e5529b commit ba4aaed
Show file tree
Hide file tree
Showing 19 changed files with 22 additions and 72 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"require-dev": {
"aik099/coding-standard": "dev-master",
"yoast/phpunit-polyfills": "^1.0",
"yoast/phpunit-polyfills": "^2.0",
"phpspec/prophecy": "^1.10",
"console-helpers/prophecy-phpunit": "^2.0@dev"
},
Expand Down
42 changes: 21 additions & 21 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions tests/SVNBuddy/Cache/CacheManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@
use Prophecy\PhpUnit\ProphecyTrait;
use Prophecy\Prophecy\ObjectProphecy;
use Tests\ConsoleHelpers\ConsoleKit\WorkingDirectoryAwareTestCase;
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;

class CacheManagerTest extends WorkingDirectoryAwareTestCase
{

use ExpectException;
use ProphecyTrait;

/**
Expand Down
3 changes: 0 additions & 3 deletions tests/SVNBuddy/Config/AbstractConfigSettingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@
use ConsoleHelpers\ConsoleKit\Config\ConfigEditor;
use ConsoleHelpers\SVNBuddy\Config\AbstractConfigSetting;
use Tests\ConsoleHelpers\SVNBuddy\AbstractTestCase;
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;

abstract class AbstractConfigSettingTest extends AbstractTestCase
{

use ExpectException;

/**
* Config editor
*
Expand Down
3 changes: 0 additions & 3 deletions tests/SVNBuddy/Config/CommandConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,10 @@
use ConsoleHelpers\SVNBuddy\Config\StringConfigSetting;
use Prophecy\Prophecy\ObjectProphecy;
use Tests\ConsoleHelpers\SVNBuddy\AbstractTestCase;
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;

class CommandConfigTest extends AbstractTestCase
{

use ExpectException;

/**
* Config editor.
*
Expand Down
3 changes: 0 additions & 3 deletions tests/SVNBuddy/Config/IntegerConfigSettingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@


use ConsoleHelpers\SVNBuddy\Config\AbstractConfigSetting;
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;
use ConsoleHelpers\SVNBuddy\Config\IntegerConfigSetting;

class IntegerConfigSettingTest extends AbstractConfigSettingTest
{

use ExpectException;

/**
* @before
* @return void
Expand Down
3 changes: 0 additions & 3 deletions tests/SVNBuddy/Config/PathsConfigSettingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@


use ConsoleHelpers\SVNBuddy\Config\AbstractConfigSetting;
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;
use ConsoleHelpers\SVNBuddy\Config\PathsConfigSetting;

class PathsConfigSettingTest extends ArrayConfigSettingTest
{

use ExpectException;

/**
* Temp folder.
*
Expand Down
3 changes: 0 additions & 3 deletions tests/SVNBuddy/Config/RegExpsConfigSettingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@


use ConsoleHelpers\SVNBuddy\Config\AbstractConfigSetting;
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;
use ConsoleHelpers\SVNBuddy\Config\RegExpsConfigSetting;

class RegExpsConfigSettingTest extends ArrayConfigSettingTest
{

use ExpectException;

/**
* @before
* @return void
Expand Down
3 changes: 0 additions & 3 deletions tests/SVNBuddy/Database/StatementProfilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@
use ConsoleHelpers\SVNBuddy\Database\StatementProfiler;
use Prophecy\Argument;
use Tests\ConsoleHelpers\SVNBuddy\AbstractTestCase;
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;

class StatementProfilerTest extends AbstractTestCase
{

use ExpectException;

/**
* Statement profiler.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@

use ConsoleHelpers\SVNBuddy\MergeSourceDetector\MergeSourceDetectorAggregator;
use Prophecy\Prophecy\ObjectProphecy;
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;
use ConsoleHelpers\SVNBuddy\MergeSourceDetector\AbstractMergeSourceDetector;

class MergeSourceDetectorAggregatorTest extends AbstractMergeSourceDetectorTestCase
{

use ExpectException;

/**
* Detectors.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@

use ConsoleHelpers\SVNBuddy\Repository\CommitMessage\MergeTemplateFactory;
use Tests\ConsoleHelpers\SVNBuddy\AbstractTestCase;
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;

class MergeTemplateFactoryTest extends AbstractTestCase
{

use ExpectException;

/**
* Merge template factory.
*
Expand Down
3 changes: 0 additions & 3 deletions tests/SVNBuddy/Repository/Connector/CommandFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use Prophecy\Argument;
use Prophecy\Prophecy\ObjectProphecy;
use Tests\ConsoleHelpers\SVNBuddy\AbstractTestCase;
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;
use ConsoleHelpers\ConsoleKit\Config\ConfigEditor;
use ConsoleHelpers\ConsoleKit\ConsoleIO;
use ConsoleHelpers\SVNBuddy\Process\IProcessFactory;
Expand All @@ -26,8 +25,6 @@
class CommandFactoryTest extends AbstractTestCase
{

use ExpectException;

/**
* Config editor.
*
Expand Down
3 changes: 0 additions & 3 deletions tests/SVNBuddy/Repository/Connector/ConnectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use Prophecy\Argument;
use Prophecy\Prophecy\ObjectProphecy;
use Tests\ConsoleHelpers\SVNBuddy\AbstractTestCase;
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;
use ConsoleHelpers\ConsoleKit\Config\ConfigEditor;
use ConsoleHelpers\ConsoleKit\ConsoleIO;
use ConsoleHelpers\SVNBuddy\Repository\Connector\CommandFactory;
Expand All @@ -26,8 +25,6 @@
class ConnectorTest extends AbstractTestCase
{

use ExpectException;

const DUMMY_REPO = 'svn://repository.com/path/to/project';

/**
Expand Down
3 changes: 0 additions & 3 deletions tests/SVNBuddy/Repository/Parser/RevisionListParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@

use ConsoleHelpers\SVNBuddy\Repository\Parser\RevisionListParser;
use Tests\ConsoleHelpers\SVNBuddy\AbstractTestCase;
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;

class RevisionListParserTest extends AbstractTestCase
{

use ExpectException;

/**
* Repository connector.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@
use ConsoleHelpers\SVNBuddy\Container;
use ConsoleHelpers\DatabaseMigration\MigrationContext;
use Tests\ConsoleHelpers\SVNBuddy\Database\AbstractDatabaseAwareTestCase as BaseAbstractDatabaseAwareTestCase;
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;

abstract class AbstractDatabaseAwareTestCase extends BaseAbstractDatabaseAwareTestCase
{

use ExpectException;

/**
* Creates database for testing with correct db structure.
*
Expand Down
3 changes: 0 additions & 3 deletions tests/SVNBuddy/Repository/RevisionLog/RevisionLogTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
use Tests\ConsoleHelpers\SVNBuddy\AbstractTestCase;
use Tests\ConsoleHelpers\SVNBuddy\ProphecyToken\ProgressBarOutputToken;
use Tests\ConsoleHelpers\SVNBuddy\ProphecyToken\SimpleXMLElementToken;
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;
use ConsoleHelpers\SVNBuddy\Repository\Connector\Connector;
use ConsoleHelpers\SVNBuddy\Repository\RevisionLog\Plugin\IRepositoryCollectorPlugin;
use ConsoleHelpers\SVNBuddy\Repository\RevisionLog\Plugin\IDatabaseCollectorPlugin;
Expand All @@ -32,8 +31,6 @@
class RevisionLogTest extends AbstractTestCase
{

use ExpectException;

/**
* Repository connector.
*
Expand Down
3 changes: 0 additions & 3 deletions tests/SVNBuddy/Repository/RevisionUrlBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,10 @@
use ConsoleHelpers\SVNBuddy\Repository\RevisionUrlBuilder;
use Prophecy\Prophecy\ObjectProphecy;
use Tests\ConsoleHelpers\SVNBuddy\AbstractTestCase;
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;

class RevisionUrlBuilderTest extends AbstractTestCase
{

use ExpectException;

/**
* Repository connector.
*
Expand Down
3 changes: 0 additions & 3 deletions tests/SVNBuddy/Repository/WorkingCopyConflictTrackerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,10 @@
use Prophecy\Argument;
use Prophecy\Prophecy\ObjectProphecy;
use Tests\ConsoleHelpers\SVNBuddy\AbstractTestCase;
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;

class WorkingCopyConflictTrackerTest extends AbstractTestCase
{

use ExpectException;

/**
* Repository connector.
*
Expand Down
3 changes: 0 additions & 3 deletions tests/SVNBuddy/Repository/WorkingCopyResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@
use ConsoleHelpers\SVNBuddy\Repository\WorkingCopyResolver;
use Prophecy\Prophecy\ObjectProphecy;
use Tests\ConsoleHelpers\SVNBuddy\AbstractTestCase;
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;

class WorkingCopyResolverTest extends AbstractTestCase
{

use ExpectException;

/**
* Repository connector.
*
Expand Down

0 comments on commit ba4aaed

Please sign in to comment.