Skip to content

Commit

Permalink
Closes #4872
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jan 23, 2022
1 parent 9c0eced commit 6411097
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/phar/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
failOnWarning="true">
<testsuites>
<testsuite name="default">
<directory>tests</directory>
<directory>tests/standard</directory>
<directory suffix="phpt">tests/phpt</directory>
</testsuite>
</testsuites>
</phpunit>
11 changes: 11 additions & 0 deletions tests/phar/tests/phpt/greeter.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--TEST--
Greeter
--FILE--
<?php declare(strict_types=1);
require_once __DIR__ . '/../../src/Greeter.php';

use PHPUnit\TestFixture\Phar\Greeter;

print (new Greeter)->greet();
--EXPECT--
Hello world!
File renamed without changes.
File renamed without changes.

0 comments on commit 6411097

Please sign in to comment.