Skip to content

Commit

Permalink
Update phpunit.xml.dist
Browse files Browse the repository at this point in the history
  • Loading branch information
adoy committed Sep 9, 2023
1 parent 3f826e0 commit e7a10a4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 26 deletions.
10 changes: 9 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@
</coverage>
<testsuites>
<testsuite name="Phake Test Suite">
<directory suffix="Test.php">tests</directory>
<directory suffix="Test.php">tests</directory>
<exclude>tests/php7.4/</exclude>
<exclude>tests/php8/</exclude>
</testsuite>
<testsuite name="Phake Test Suite PHP 7.4">
<directory phpVersion="7.4.0" phpVersionOperator=">=">tests/php7.4/</directory>
</testsuite>
<testsuite name="Phake Test Suite PHP 8.0">
<directory phpVersion="8.0.0" phpVersionOperator=">=">tests/php8/</directory>
</testsuite>
</testsuites>
</phpunit>
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

if (PHP_VERSION_ID >= 70400) {
$fp = fopen(__FILE__, 'r');
fseek($fp, __COMPILER_HALT_OFFSET__);
eval(stream_get_contents($fp));
}

__halt_compiler();

namespace Phake\Annotation;

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@

declare(strict_types=1);

if (PHP_VERSION_ID >= 80000) {
$fp = fopen(__FILE__, 'r');
fseek($fp, __COMPILER_HALT_OFFSET__);
eval(stream_get_contents($fp));
}

__halt_compiler();


namespace Phake\Annotation;

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

declare(strict_types=1);

if (PHP_VERSION_ID >= 80000) {
$fp = fopen(__FILE__, 'r');
fseek($fp, __COMPILER_HALT_OFFSET__);
eval(stream_get_contents($fp));
}

__halt_compiler();

/*
* Phake - Mocking Framework
*
Expand Down Expand Up @@ -66,6 +58,7 @@ class PhakeNamedArgumentsTest extends TestCase
{
public function testNamedArgumentsInWhen()
{
$this->assertFalse(true);
$mock = Phake::mock('PhakeTest_MockedClass');
Phake::when($mock)->fooWithLotsOfParameters(parm3: 3, parm2: 2, parm1: 1)->thenReturn(42);

Expand Down

0 comments on commit e7a10a4

Please sign in to comment.