Beispiel #1
0
 public function test_that_it_can_set_and_get_content()
 {
     $contentBody = 'Test content';
     $contentType = 'text/plain';
     $this->message->addContent($contentBody, $contentType);
     $content = $this->message->getContent();
     $this->assertTrue($contentBody === $content[0]['content'] && $contentType === $content[0]['content_type'] && Message::DEFAULT_CHARSET === $content[0]['charset']);
 }