public function match(string $value) : bool { return 1 === preg_match($this->pattern, $value); }
public function testCanMatchAgainstValues() { $regex = '/^d/'; $value = new FixtureMatchReferenceValue($regex); $this->assertTrue($value->match('d')); $this->assertFalse($value->match('a')); }