public function testMatch() { $s = new StringObject('I had 10 dollars.'); $result = $s->match('|([0-9]{1,5})|', false); $this->assertSame(['10', '10'], $result->val()); }