Skip to content

Commit

Permalink
Upgraded PHPUnit to v10
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasse Lehtinen committed May 8, 2024
1 parent ab726c3 commit dbc0835
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"guzzlehttp/guzzle": "~6.0|~7.0"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
"phpunit/phpunit": "^10.0",
"phpro/grumphp": "^1.4",
"squizlabs/php_codesniffer": "^3.7",
"php-parallel-lint/php-parallel-lint": "^1.4",
Expand Down
12 changes: 6 additions & 6 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="MyPackage Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
</phpunit>
8 changes: 4 additions & 4 deletions tests/StacksTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ public function testGettingStackDataById()

// Get Stack by id
$stackData = $stacks->getStackDataById($stacksList->results[0]->id);
$this->assertObjectHasProperty('id', $stackData);
$this->assertTrue(property_exists($stackData, 'id'));
$this->assertSame($stacksList->results[0]->id, $stackData->id);
$this->assertObjectHasProperty('title', $stackData);
$this->assertObjectHasProperty('description', $stackData);
$this->assertObjectHasProperty('accessType', $stackData);
$this->assertTrue(property_exists($stackData, 'title'));
$this->assertTrue(property_exists($stackData, 'description'));
$this->assertTrue(property_exists($stackData, 'accessType'));
}

/**
Expand Down

0 comments on commit dbc0835

Please sign in to comment.