Skip to content

Commit d59d999

Browse files
authored
Update phpunit to ^10.5 (#2381)
1 parent 2712484 commit d59d999

19 files changed

+110
-107
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
if [[ ${{ matrix.db-type }} == 'pgsql' ]]; then export PGSQL_DSN='pgsql://postgres:postgres@127.0.0.1/phinx'; fi
103103
104104
if [[ ${{ matrix.prefer-lowest != 'prefer-lowest' }} ]]; then
105-
export CODECOVERAGE=1 && vendor/bin/phpunit --verbose --coverage-clover=coverage.xml
105+
export CODECOVERAGE=1 && vendor/bin/phpunit --coverage-clover=coverage.xml
106106
else
107107
vendor/bin/phpunit
108108
fi
@@ -180,7 +180,7 @@ jobs:
180180
SQLSRV_DSN: 'sqlsrv://(localdb)\MSSQLLocalDB/phinx'
181181
CODECOVERAGE: 1
182182
run: |
183-
vendor/bin/phpunit --verbose --coverage-clover=coverage.xml
183+
vendor/bin/phpunit --coverage-clover=coverage.xml
184184
185185
- name: Submit code coverage
186186
uses: codecov/codecov-action@v5

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"ext-pdo": "*",
4949
"cakephp/cakephp-codesniffer": "^5.0",
5050
"cakephp/i18n": "^5.0",
51-
"phpunit/phpunit": "^9.5.19",
51+
"phpunit/phpunit": "^10.5",
5252
"symfony/yaml": "^4.0|^5.0|^6.0|^7.0"
5353
},
5454
"autoload": {

tests/Phinx/Config/AbstractConfigTest.php renamed to tests/Phinx/Config/AbstractConfigTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
use PHPUnit\Framework\TestCase;
66

77
/**
8-
* Class AbstractConfigTest
8+
* Class AbstractConfigTestCase
99
*
1010
* @package Test\Phinx\Config
1111
* @group config
1212
* @coversNothing
1313
*/
14-
abstract class AbstractConfigTest extends TestCase
14+
abstract class AbstractConfigTestCase extends TestCase
1515
{
1616
/**
1717
* @var string

tests/Phinx/Config/ConfigDefaultEnvironmentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* @group config
1313
* @covers \Phinx\Config\Config::getDefaultEnvironment
1414
*/
15-
class ConfigDefaultEnvironmentTest extends AbstractConfigTest
15+
class ConfigDefaultEnvironmentTest extends AbstractConfigTestCase
1616
{
1717
public function testGetDefaultEnvironment()
1818
{

tests/Phinx/Config/ConfigDsnTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @group config
1212
* @covers \Phinx\Config\Config::getEnvironment
1313
*/
14-
class ConfigDsnTest extends AbstractConfigTest
14+
class ConfigDsnTest extends AbstractConfigTestCase
1515
{
1616
public function testConnectionOptionsCanBeSpecifiedWithDsn()
1717
{

tests/Phinx/Config/ConfigMigrationPathsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* @group config
1313
* @covers \Phinx\Config\Config::getMigrationPaths
1414
*/
15-
class ConfigMigrationPathsTest extends AbstractConfigTest
15+
class ConfigMigrationPathsTest extends AbstractConfigTestCase
1616
{
1717
public function testGetMigrationPathsThrowsExceptionForNoPath()
1818
{

tests/Phinx/Config/ConfigReplaceTokensTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @package Test\Phinx\Config
1111
* @group config
1212
*/
13-
class ConfigReplaceTokensTest extends AbstractConfigTest
13+
class ConfigReplaceTokensTest extends AbstractConfigTestCase
1414
{
1515
/**
1616
* Data to be saved to $_SERVER and checked later

tests/Phinx/Config/ConfigSeedPathsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* @group config
1313
* @covers \Phinx\Config\Config::getSeedPaths
1414
*/
15-
class ConfigSeedPathsTest extends AbstractConfigTest
15+
class ConfigSeedPathsTest extends AbstractConfigTestCase
1616
{
1717
public function testGetSeedPathsThrowsExceptionForNoPath()
1818
{

tests/Phinx/Config/ConfigSeedTemplatePathsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @group config
1212
* @covers \Phinx\Config\Config::getSeedTemplateFile
1313
*/
14-
class ConfigSeedTemplatePathsTest extends AbstractConfigTest
14+
class ConfigSeedTemplatePathsTest extends AbstractConfigTestCase
1515
{
1616
public function testTemplateAndPathAreSet()
1717
{

tests/Phinx/Config/ConfigTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* @package Test\Phinx\Config
1515
* @group config
1616
*/
17-
class ConfigTest extends AbstractConfigTest
17+
class ConfigTest extends AbstractConfigTestCase
1818
{
1919
/**
2020
* @covers \Phinx\Config\Config::getEnvironments
@@ -313,7 +313,7 @@ public function testIsVersionOrderCreationTime($versionOrder, $expected)
313313
{
314314
// get config stub
315315
$configStub = $this->getMockBuilder('\Phinx\Config\Config')
316-
->setMethods(['getVersionOrder'])
316+
->onlyMethods(['getVersionOrder'])
317317
->setConstructorArgs([[]])
318318
->getMock();
319319

0 commit comments

Comments
 (0)