public function testTextDynamicString() { $this->specify("dynamic do not return the correct string", function () { $actual = Text::dynamic('{Hi|Hello}, my name is a Bob!'); expect($actual)->notContains('{'); expect($actual)->notContains('}'); expect(preg_match('/^(Hi|Hello), my name is a Bob!$/', $actual))->equals(1); }); }