-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PLT-519 Move to CircleCI and test against newer PHP (#30)
- Loading branch information
1 parent
84a167c
commit 11454dd
Showing
30 changed files
with
591 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
version: 2.1 | ||
|
||
jobs: | ||
test: | ||
parameters: | ||
php_version: | ||
type: string | ||
docker: | ||
- image: cimg/php:<< parameters.php_version >> | ||
steps: | ||
- checkout | ||
- run: composer install | ||
- run: composer run lint | ||
- run: composer run test | ||
- store_test_results: | ||
path: build | ||
- store_artifacts: | ||
path: build | ||
|
||
workflows: | ||
build_and_test: | ||
jobs: | ||
- test: | ||
matrix: | ||
parameters: | ||
php_version: | ||
- 5.6.40 | ||
- 7.4.33 | ||
- 8.0.30 | ||
- 8.1.29 | ||
- 8.2.20 | ||
- 8.3.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ coverage | |
vendor | ||
docker-compose.override.yml | ||
.env | ||
.phpunit.result.cache |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
namespace test; | ||
|
||
use PHPUnit\Framework\Assert; | ||
|
||
/** | ||
* Comprises assertions that have changed between since PHPUnit 4, | ||
* and that, due to incompatible definitions (final, type hints), | ||
* could not be overridden in TestBase. | ||
*/ | ||
class CompatAssert | ||
{ | ||
/** | ||
* @param string $needle | ||
* @param string $haystack | ||
* @param string $message | ||
* @return void | ||
*/ | ||
public static function assertStringContainsString($needle, $haystack, $message = '') | ||
{ | ||
if (method_exists(Assert::class, __FUNCTION__)) { | ||
Assert::assertStringContainsString($needle, $haystack, $message); | ||
} else { | ||
Assert::assertContains($needle, $haystack, $message); | ||
} | ||
} | ||
|
||
/** | ||
* Asserts that a variable is of type array. | ||
* | ||
* @param mixed $actual | ||
* @param string $message | ||
* @return void | ||
*/ | ||
public static function assertIsArray($actual, $message = '') | ||
{ | ||
if (method_exists(Assert::class, __FUNCTION__)) { | ||
Assert::assertIsArray($actual, $message); | ||
} else { | ||
Assert::assertInternalType('array', $actual, $message); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
namespace PHPUnit\Framework\MockObject { | ||
if (!interface_exists(\PHPUnit\Framework\MockObject\MockObject::class)) { | ||
interface MockObject extends \PHPUnit_Framework_MockObject_MockObject | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.