-
-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
118 additions
and
1 deletion.
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
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,21 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace ParaTest\Tests\fixtures\github\GH869; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
|
||
/** @internal */ | ||
final class IssueTest extends TestCase | ||
{ | ||
public function testUnsuppressedButBaselineDeprecated(): void | ||
{ | ||
self::assertTrue((new Something())->raiseDeprecated()); | ||
} | ||
|
||
public function testSuppressedButNotBaselineNotice(): void | ||
{ | ||
self::assertTrue((new Something())->raiseNotice()); | ||
} | ||
} |
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,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace ParaTest\Tests\fixtures\github\GH869; | ||
|
||
use function trigger_error; | ||
|
||
use const E_USER_DEPRECATED; | ||
use const E_USER_NOTICE; | ||
|
||
/** @internal */ | ||
final class Something | ||
{ | ||
public function raiseDeprecated(): bool | ||
{ | ||
@trigger_error('what', E_USER_DEPRECATED); | ||
|
||
return true; | ||
} | ||
|
||
public function raiseNotice(): bool | ||
{ | ||
@trigger_error('what', E_USER_NOTICE); | ||
|
||
return true; | ||
} | ||
} |
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,8 @@ | ||
<?xml version="1.0"?> | ||
<files version="1"> | ||
<file path="Something.php"> | ||
<line number="17" hash="aa950011fe9480f51290b3dad45f9d052960befd"> | ||
<issue><![CDATA[what]]></issue> | ||
</line> | ||
</file> | ||
</files> |
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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="../../../../vendor/phpunit/phpunit/phpunit.xsd" | ||
> | ||
<testsuites> | ||
<testsuite name="Github issue"> | ||
<file>IssueTest.php</file> | ||
</testsuite> | ||
</testsuites> | ||
<source | ||
ignoreSuppressionOfDeprecations="true" | ||
baseline="baseline.xml" | ||
> | ||
<include> | ||
<file>Something.php</file> | ||
</include> | ||
</source> | ||
</phpunit> |