forked from lstrojny/phpunit-function-mocker
-
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.
Add PHP 8.1 compatibility; Add basic PHPCS (#3)
* Add PHP 8.1 compatibility; Add basic PHPCS * Bring back PHP 7.4 compatibility
- Loading branch information
Showing
10 changed files
with
120 additions
and
75 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 |
---|---|---|
|
@@ -4,3 +4,4 @@ atlassian-ide-plugin.xml | |
composer.lock | ||
build/ | ||
phpunit.xml | ||
.phpunit.result.cache |
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 |
---|---|---|
@@ -1,17 +1,22 @@ | ||
{ | ||
"name": "lstrojny/phpunit-function-mocker", | ||
"description": "Allows mocking otherwise untestable PHP functions through the use of namespaces", | ||
"description": "Allows mocking otherwise untestable PHP functions through the use of namespaces. PHP 8.1 compatible fork of the eponymous library by Lars Strojny", | ||
"license": "MIT", | ||
"require": { | ||
"php": "~7.1" | ||
"php": "^7.4 || ^8.0 || ^8.1" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "~7" | ||
"phpunit/phpunit": "~9", | ||
"squizlabs/php_codesniffer": "~3" | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Lars Strojny", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "Andre Polykanine", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"autoload": { | ||
|
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,10 @@ | ||
<?xml version="1.0"?> | ||
<ruleset> | ||
<exclude-pattern>*/.git/*</exclude-pattern> | ||
<exclude-pattern>*/vendor/*</exclude-pattern> | ||
<include-pattern>*/src/*</include-pattern> | ||
<include-pattern>*/tests/*</include-pattern> | ||
<rule ref="PSR2"> | ||
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration"/> | ||
</rule> | ||
</ruleset> |
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 |
---|---|---|
@@ -1,19 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" | ||
<phpunit | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
backupGlobals="false" | ||
convertErrorsToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
bootstrap="vendor/autoload.php" | ||
verbose="true" | ||
colors="true"> | ||
|
||
<testsuites> | ||
<testsuite name="PHPUnit_Extension_FunctionMockerTest"> | ||
<directory>./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<logging> | ||
<log type="junit" target="build/logs/junit.xml"/> | ||
</logging> | ||
colors="true" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> | ||
<coverage/> | ||
<testsuites> | ||
<testsuite name="PHPUnit_Extension_FunctionMockerTest"> | ||
<directory>./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
<logging> | ||
<junit outputFile="build/logs/junit.xml"/> | ||
</logging> | ||
</phpunit> |
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
Oops, something went wrong.