From e00efb1b6d18d0628a43ecd425fef50906f7e19d Mon Sep 17 00:00:00 2001 From: Mohammad Zahed Date: Thu, 8 Jun 2023 14:50:25 +0300 Subject: [PATCH] add tests for directory and file patterns --- tests/PHPUnit/CustomTestCase/UsesPerDirectoryAsPattern.php | 7 +++++++ tests/PHPUnit/CustomTestCase/UsesPerFileAsPattern.php | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 tests/PHPUnit/CustomTestCase/UsesPerDirectoryAsPattern.php create mode 100644 tests/PHPUnit/CustomTestCase/UsesPerFileAsPattern.php diff --git a/tests/PHPUnit/CustomTestCase/UsesPerDirectoryAsPattern.php b/tests/PHPUnit/CustomTestCase/UsesPerDirectoryAsPattern.php new file mode 100644 index 00000000..5e8546f4 --- /dev/null +++ b/tests/PHPUnit/CustomTestCase/UsesPerDirectoryAsPattern.php @@ -0,0 +1,7 @@ +in('../*/'); + +test('closure was bound to CustomTestCase', function () { + $this->assertCustomTrue(); +}); diff --git a/tests/PHPUnit/CustomTestCase/UsesPerFileAsPattern.php b/tests/PHPUnit/CustomTestCase/UsesPerFileAsPattern.php new file mode 100644 index 00000000..fb47d2d4 --- /dev/null +++ b/tests/PHPUnit/CustomTestCase/UsesPerFileAsPattern.php @@ -0,0 +1,7 @@ +in('*.php'); + +test('closure was bound to CustomTestCase', function () { + $this->assertCustomTrue(); +});