More Tests 

is(
  $formatter->format("one two\n three\n  \nfour five six"),
  "one two\nthree\n\nfour\nfive six",
  'whitespace between paragraphs handled correctly'
);