Skip to content

Commit cab4142

Browse files
authored
chore(deps): update phpunit/phpunit to ^10.0 (#16)
Also remove coverage element and upgrade phpunit config to version 10. Tests are not annotated for coverage, so the coverage element wasn't adding any value, but with the upgrade to phpunit 10 this caused the test runs to fail.
1 parent 3e08652 commit cab4142

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

google-analytics-admin/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"require-dev": {
77
"google/cloud-tools": "dev-main",
88
"squizlabs/php_codesniffer": "^3.5",
9-
"phpunit/phpunit": "^9.0",
9+
"phpunit/phpunit": "^10.0",
1010
"friendsofphp/php-cs-fixer": "^3.46"
1111
}
1212
}

google-analytics-admin/phpunit.xml.dist

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,15 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./testing/bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
18-
<coverage>
17+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./testing/bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd">
18+
<source>
1919
<include>
2020
<directory suffix=".php">./src</directory>
2121
</include>
2222
<exclude>
2323
<directory>./vendor</directory>
2424
</exclude>
25-
<report>
26-
<clover outputFile="build/logs/clover.xml"/>
27-
</report>
28-
</coverage>
25+
</source>
2926
<testsuites>
3027
<testsuite name="Google Analytics Admin API Tests">
3128
<directory>test</directory>

google-analytics-data/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"require-dev": {
77
"google/cloud-tools": "dev-main",
88
"squizlabs/php_codesniffer": "^3.5",
9-
"phpunit/phpunit": "^9.0",
9+
"phpunit/phpunit": "^10.0",
1010
"friendsofphp/php-cs-fixer": "^3.46"
1111
}
1212
}

google-analytics-data/phpunit.xml.dist

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,15 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./testing/bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
18-
<coverage>
17+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./testing/bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd">
18+
<source>
1919
<include>
2020
<directory suffix=".php">./src</directory>
2121
</include>
2222
<exclude>
2323
<directory>./vendor</directory>
2424
</exclude>
25-
<report>
26-
<clover outputFile="build/logs/clover.xml"/>
27-
</report>
28-
</coverage>
25+
</source>
2926
<testsuites>
3027
<testsuite name="Google Analytics Data API Tests">
3128
<directory>test</directory>

0 commit comments

Comments
 (0)