Add onLineContaining ...

...as it will often be easier to test against a particular line by referencing its content rather than figuring out the line number.