Skip to content

Commit fb87353

Browse files
committed
Support PHPUnit 10
1 parent 9b156fd commit fb87353

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"aimeos/ai-controller-frontend": "dev-master"
3333
},
3434
"require-dev": {
35-
"phpunit/phpunit": "~9.0",
35+
"phpunit/phpunit": "^9.0||^10.0",
3636
"orchestra/testbench": "~7.0||~8.0",
3737
"orchestra/testbench-browser-kit": "~7.0||~8.0",
3838
"php-coveralls/php-coveralls": "~2.0"

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
33
<coverage>
44
<include>
55
<directory suffix=".php">./src/</directory>

tests/Base/ConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public function testGet()
77
$aimeos = $this->app->make( '\Aimeos\Shop\Base\Aimeos' );
88

99
$configMock = $this->getMockBuilder( '\Illuminate\Config\Repository' )
10-
->setMethods( array( 'get' ) )->getMock();
10+
->onlyMethods( array( 'get' ) )->getMock();
1111

1212
$configMock->expects( $this->exactly( 4 ) )->method( 'get' )
1313
->will( $this->onConsecutiveCalls( true, 'laravel:', array(), array() ) );

tests/Base/I18nTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public function testGet()
77
$aimeos = $this->app->make( '\Aimeos\Shop\Base\Aimeos' );
88

99
$configMock = $this->getMockBuilder( '\Illuminate\Config\Repository' )
10-
->setMethods( array( 'get', 'has' ) )->getMock();
10+
->onlyMethods( array( 'get', 'has' ) )->getMock();
1111

1212
$configMock->expects( $this->once() )->method( 'has' )
1313
->will( $this->returnValue( true ) );

tests/Controller/CatalogControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function testSuggestAction()
6868
$response = $this->action( 'GET', '\Aimeos\Shop\Controller\CatalogController@suggestAction', ['site' => 'unittest'], ['f_search' => 'Cafe'] );
6969

7070
$this->assertResponseOk();
71-
$this->assertRegexp( '/[{.*}]/', $response->getContent() );
71+
$this->assertMatchesRegularExpression( '/[{.*}]/', $response->getContent() );
7272
}
7373

7474

0 commit comments

Comments
 (0)