Skip to content

Commit 2bac53b

Browse files
committed
Fix input regex tests
1 parent f90848b commit 2bac53b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/ParsingInputTest.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,9 @@ public function testRegexMatched(): void
126126
{
127127
$input = new ParsingInput('test');
128128

129-
$this->expectException(\RuntimeException::class);
130129
$this->assertEquals(
131130
'te',
132-
$input->consumeRegex('/^t.'),
131+
$input->consumeRegex('/^t./'),
133132
);
134133
}
135134

@@ -138,6 +137,6 @@ public function testRegexNotMatched(): void
138137
$input = new ParsingInput('test');
139138

140139
$this->expectException(\RuntimeException::class);
141-
$input->consumeRegex('/^foo');
140+
$input->consumeRegex('/^foo/');
142141
}
143142
}

0 commit comments

Comments
 (0)