Bug118Test.php 467B

12345678910111213141516171819202122232425
  1. <?php
  2. require_once 'Swift/Tests/SwiftUnitTestCase.php';
  3. class Swift_Bug118Test extends Swift_Tests_SwiftUnitTestCase
  4. {
  5. private $_message;
  6. public function setUp()
  7. {
  8. $this->_message = new Swift_Message();
  9. }
  10. public function testCallingGenerateIdChangesTheMessageId()
  11. {
  12. $currentId = $this->_message->getId();
  13. $this->_message->generateId();
  14. $newId = $this->_message->getId();
  15. $this->assertNotEqual($currentId, $newId);
  16. }
  17. }