Skip to content

Commit 1d27d7c

Browse files
added directory create into protocol tests
1 parent a146ab6 commit 1d27d7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/protocol/ATest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ public function readCallback(int $length = 2048): string
100100
*/
101101
protected function setUp(): void
102102
{
103+
if (!file_exists(getcwd() . DIRECTORY_SEPARATOR . 'temp' . DIRECTORY_SEPARATOR)) {
104+
mkdir(getcwd() . DIRECTORY_SEPARATOR . 'temp');
105+
}
106+
103107
self::$readBuffer = '';
104108
self::$readArray = [];
105109
self::$writeIndex = 0;

0 commit comments

Comments
 (0)