From 2e412f2be463a3182d17ad4ef6c41bef72007413 Mon Sep 17 00:00:00 2001 From: Edmund Farrow Date: Thu, 6 Jun 2024 10:53:10 +0100 Subject: [PATCH] regex-fix - Fix test --- tests/cli_helper_test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cli_helper_test.php b/tests/cli_helper_test.php index 1fa94c3..e67ebe8 100644 --- a/tests/cli_helper_test.php +++ b/tests/cli_helper_test.php @@ -524,9 +524,9 @@ public function test_validation_ignorecat_error(): void { */ public function test_validation_ignorecat_replace(): void { $helper = new fake_cli_helper([]); - $helper->processedoptions = ['token' => 'X', 'manifestpath' => 'path/subpath', 'ignorecat' => '//hello//']; + $helper->processedoptions = ['token' => 'X', 'manifestpath' => 'path/subpath', 'ignorecat' => '//hello\//']; $helper->validate_and_clean_args(); $this->expectOutputString(''); - $this->assertEquals('/hello//', $helper->processedoptions['ignorecat']); + $this->assertEquals('/hello\//', $helper->processedoptions['ignorecat']); } }