Skip to content

Commit 6411097

Browse files
Closes #4872
1 parent 9c0eced commit 6411097

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

tests/phar/phpunit.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
failOnWarning="true">
77
<testsuites>
88
<testsuite name="default">
9-
<directory>tests</directory>
9+
<directory>tests/standard</directory>
10+
<directory suffix="phpt">tests/phpt</directory>
1011
</testsuite>
1112
</testsuites>
1213
</phpunit>

tests/phar/tests/phpt/greeter.phpt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--TEST--
2+
Greeter
3+
--FILE--
4+
<?php declare(strict_types=1);
5+
require_once __DIR__ . '/../../src/Greeter.php';
6+
7+
use PHPUnit\TestFixture\Phar\Greeter;
8+
9+
print (new Greeter)->greet();
10+
--EXPECT--
11+
Hello world!

0 commit comments

Comments
 (0)