/** * Flowed formatting will be on by default (> at the start of a line indicates a quote). */ public function testFlowedFormattingCanBeTurnedOnOrOff() { $msg = new Swift_Message(); $msg->setBody("some body"); $msg->setFlowed(true); $structure = $msg->build()->readFull(); $this->assertPattern("~Content-Type: text/plain;\\s* charset=.*?;\\s* format=flowed~s", $structure); $msg = new Swift_Message(); $msg->setBody("some body"); $msg->setFlowed(false); $structure = $msg->build()->readFull(); $this->assertNoPattern("~Content-Type: text/plain;\\s* charset=.*?;\\s* format=flowed~s", $structure); }