elliotchance / concise

✅ Concise is test framework for using plain English and minimal code, built on PHPUnit.
MIT License
45 stars 3 forks source link

Modifiers for counting matches in strings #260

Open elliotchance opened 9 years ago

elliotchance commented 9 years ago

Count when a string or reggae appears a certain amount of times, this can be nested like:

$this->assert($this->assert('foo foo', contains_string, 'foo'), appears_twice);

appears twice is a synonym for equals 2