We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 678843c commit 962ff48Copy full SHA for 962ff48
tests/WatcherTest.php
@@ -4,10 +4,20 @@
4
5
use PHPUnit\Framework\TestCase;
6
use RTC\Watcher\Watching\EventInfo;
7
+use Swoole\Timer;
8
use function Co\run;
9
10
class WatcherTest extends TestCase
11
{
12
+ protected function setUp(): void
13
+ {
14
+ parent::setUp();
15
+
16
+ if (!file_exists(__DIR__ . '/bait')) {
17
+ mkdir(__DIR__ . '/bait');
18
+ }
19
20
21
public function testFileAndDirectoryCreation(): void
22
23
run(function () {
@@ -152,7 +162,6 @@ public function testCreateChangeDeleteOnTheFly(): void
152
162
touch($baitFile);
153
163
file_put_contents($baitFile, uniqid());
154
164
unlink($baitFile);
155
- rmdir($baitDir);
156
165
});
157
166
}
158
167
0 commit comments