Exemplo n.º 1
0
 /**
  * @depends test_getHTML
  * @covers ::setHTML
  */
 public function test_setHTML()
 {
     $Document = new \DOMDocument('1.0');
     # Valid HTML
     $this->assertEquals(IDataMapper::UPDATED, $this->Message->setHTML($Document), 'IMessage::setHTML() should return IDataMapper::UPDATED');
     $this->assertSame($Document, $this->Message->getHTML(), 'IMessage::setHTML() did not update message as expected');
     # Invalid HTML
     $this->assertEquals(IDataMapper::INVALID, $this->Message->setHTML(NULL), 'IMessage::setHTML() should return IDataMapper::INVALID');
 }