bashkarev / email Goto Github PK
View Code? Open in Web Editor NEWFaster MIME Mail Parser
License: MIT License
Faster MIME Mail Parser
License: MIT License
Traits in the code are used only once so there's no need to use them at all.
transports:
mailparse
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.
Hypothesis:
The parser based on goto
will give an increase in performance
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're kicking ass.<div>╤З╤В╨╛╨▒╤Л ╤П ╨▒╨╡╨╖ ╨▓╨░╤Б ╨┤╨╡╨╗╨░╨╗, ╨┤╨╛╤А╨╛╨│╨╕╨╡ ╨╝╨╛╨╕!!!<br clear="all"><br>-- <br>Ev Kontsevoy, <div><font color="#666666">Co-founder and CEO of <a href="http://Mailgun.net" target="_blank">Mailgun.net</a> - the email platform for developers.</font><div>
<font color="#CC0000">Mailgun:</font> <font color="#666666">send, receive, store and search emails!</font><br><font color="#666666">p: 512-417-1762 | t: @mail_gun | 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.
Email::context()
currently may return two different objects Message
and Part
. Later return of the method is used in the way that it depends on which object was returned.
Overall that is quite confusing...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.