Skip to content

Commit e303a16

Browse files
committed
Fix a regex in ProcessMemoryMapReaderTest
1 parent 87a7250 commit e303a16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Lib/Process/MemoryMap/ProcessMemoryMapReaderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ public function testRead()
2222
$result = (new ProcessMemoryMapReader())->read(getmypid());
2323
$first_line = strtok($result, "\n");
2424
$this->assertMatchesRegularExpression(
25-
'/[0-9a-f]+-[0-9a-f]+ [r\-][w\-][x\-][sp\-] [0-9a-f]+ [0-9][0-9][0-9]?:[0-9][0-9][0-9]? [0-9]+ +[^ ].*/',
25+
// phpcs:ignore Generic.Files.LineLength.TooLong
26+
'/[0-9a-f]+-[0-9a-f]+ [r\-][w\-][x\-][sp\-] [0-9a-f]+ [0-9a-z][0-9a-z][0-9a-z]?:[0-9a-z][0-9a-z][0-9a-z]? [0-9]+ +[^ ].*/',
2627
$first_line
2728
);
2829
}

0 commit comments

Comments
 (0)