EncodingAcceptanceTest.php 875B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. require_once 'Swift/Tests/SwiftUnitTestCase.php';
  3. require_once 'swift_required.php';
  4. class Swift_EncodingAcceptanceTest extends Swift_Tests_SwiftUnitTestCase
  5. {
  6. public function testGet7BitEncodingReturns7BitEncoder()
  7. {
  8. $encoder = Swift_Encoding::get7BitEncoding();
  9. $this->assertEqual('7bit', $encoder->getName());
  10. }
  11. public function testGet8BitEncodingReturns8BitEncoder()
  12. {
  13. $encoder = Swift_Encoding::get8BitEncoding();
  14. $this->assertEqual('8bit', $encoder->getName());
  15. }
  16. public function testGetQpEncodingReturnsQpEncoder()
  17. {
  18. $encoder = Swift_Encoding::getQpEncoding();
  19. $this->assertEqual('quoted-printable', $encoder->getName());
  20. }
  21. public function testGetBase64EncodingReturnsBase64Encoder()
  22. {
  23. $encoder = Swift_Encoding::getBase64Encoding();
  24. $this->assertEqual('base64', $encoder->getName());
  25. }
  26. }