Exemplo n.º 1
0
 /**
  * @depends test_createMimeMessage
  * @covers ::sendWith()
  */
 public function test_sendWith()
 {
     $Transport = new Transport($this->getMockForAbstractClass('\\BLW\\Type\\IMediator'));
     $this->generateMessage();
     $this->assertEquals(ITransport::SUCCESS, $this->Message->sendWith($Transport, -1), 'IMessage::sendWidth() should return ITransport::SUCCESS');
     $this->assertInstanceof('\\BLW\\Type\\MIME\\IHead', $Transport->getMimeHead(), 'IMessage::sendWidth() produced an invalid MIME head');
     $this->assertInstanceof('\\BLW\\Type\\MIME\\IBody', $Transport->getMimeBody(), 'IMessage::sendWidth() produced an invalid MIME body');
     $this->assertCount(3, $Transport->getReceipients(), 'IMessage::sendWidth should send to 3 recipients');
 }