Giter Club home page Giter Club logo

email's Issues

multipart/report

  • message/feedback-report
  • message/delivery-status
  • message/disposition-notification

Tests are failing under Windows

PHPUnit 4.8.35 by Sebastian Bergmann and contributors.

.....F....F.

Time: 404 ms, Memory: 6.00MB

There were 2 failures:

1) bashkarev\email\tests\MessageTest::testHtml
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<p>Dear Sir</p><p>Good evening.</p><p></p><p>The footer</p>'
+'<p>Dear Sir</p><p>Good evening.</p><p></p>
+
+<p>The footer</p>'

C:\dev\email\tests\MessageTest.php:45
C:\dev\email\tests\TestCase.php:29
C:\dev\email\tests\MessageTest.php:47

2) bashkarev\email\tests\MimeTest::testMessageRFC822
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
 'dudes... you&#39;re kicking ass.<div>╤З╤В╨╛╨▒╤Л ╤П ╨▒╨╡╨╖ ╨▓╨░╤Б ╨┤╨╡╨╗╨░╨╗, ╨┤╨╛╤А╨╛╨│╨╕╨╡ ╨╝╨╛╨╕!!!<br clear="all"><br>-- <br>Ev Kontsevoy,&nbsp;<div><font color="#666666">Co-founder and CEO of&nbsp;<a href="http://Mailgun.net" target="_blank">Mailgun.net</a> - the email platform for developers.</font><div>
 <font color="#CC0000">Mailgun:</font>&nbsp;<font color="#666666">send, receive, store and search emails!</font><br><font color="#666666">p: 512-417-1762 &nbsp;| &nbsp;t: @mail_gun &nbsp;| &nbsp;w: <a href="http://mailgun.net" target="_blank">mailgun.net</a></font></div>
 </div><div><br></div><br>
 </div>
 '

C:\dev\email\tests\MimeTest.php:103
C:\dev\email\tests\TestCase.php:29
C:\dev\email\tests\MimeTest.php:104

FAILURES!
Tests: 12, Assertions: 65, Failures: 2.

No need for traits

Traits in the code are used only once so there's no need to use them at all.

Command line tool

  • Global bin mailparse
  • Convert to html
  • Convert to text
  • Save attachments
  • Doc

Tests should be refactored

There are many assertions in a single test method which aren't clear. It makes sense to break these each assertion into its own method and name the method to describe what is asserted.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.