Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"description": "Allows mocking otherwise untestable PHP functions through the use of namespaces",
"license": "MIT",
"require": {
"php": "~7"
"php": "~7.1"
},
"require-dev": {
"phpunit/phpunit": "~6"
"phpunit/phpunit": "~7"
},
"authors": [
{
Expand Down
16 changes: 5 additions & 11 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
convertErrorsToExceptions="true"
convertWarningsToExceptions="true"
convertNoticesToExceptions="true"
mapTestClassNameToCoveredClassName="true"
bootstrap="vendor/autoload.php"
strict="true"
verbose="true"
colors="true">

Expand All @@ -16,18 +14,14 @@
</testsuites>

<logging>
<log type="coverage-html" target="build/coverage" title="ExceptionBundle"
charset="UTF-8" yui="true" highlight="true"
lowUpperBound="35" highLowerBound="70"/>
<log type="coverage-html" target="build/coverage" lowUpperBound="35" highLowerBound="70"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
<log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
<log type="junit" target="build/logs/junit.xml"/>
</logging>

<filter>
<blacklist>
<directory suffix=".php">tests/</directory>
<directory suffix=".php">vendor/</directory>
<directory suffix=".php">/usr/share/php</directory>
</blacklist>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
</phpunit>
4 changes: 2 additions & 2 deletions tests/PHPUnitTests/Extension/FunctionMockerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ class FunctionMockerTest extends TestCase
/** @var FunctionMocker */
private $functionMocker;

public function setUp()
protected function setUp(): void
{
$this->functionMocker = FunctionMocker::start($this, 'My\TestNamespace');
}

public function tearDown()
protected function tearDown(): void
{
FunctionMocker::tearDown();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/PHPUnitTests/Extension/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class IntegrationTest extends TestCase
{
private $php;

public function setUp()
protected function setUp(): void
{
$this->php = FunctionMocker::start($this, 'PHPUnitTests\Extension\Fixtures')
->mockFunction('strpos')
Expand Down