Skip to content
This repository

Comprehensive mailing tools for PHP

feature #418 Use PHPUnit for unit testing (realityking)

This PR was merged into the 5.1-dev branch.

Discussion
----------

Use PHPUnit for unit testing

Follow up to #413. This is not quite complete, but I'm over 90% there.

I've splitted the pull request into two commits for now so it's easier to work with. Everything in the folder test is not converted yet. I've detailed some problems I need help with below. For the final result I intent on one big commit removing the old tests and adding the new ones. Since I'm preserving the folder structure this should give us a nice clean changelog.

While I do the remaining unit tests for Transport I need some help with the following things:

- [x] There's one acceptance test left I can't get to work. I added a @todo comment to describe the problem.
- [x] There's one unit test in the folder MIME I can't get to work with Mockery. I added a @todo comment to describe the problem.
- [ ] The smoke tests have lost the visual comparison. I have no idea how to get that to work with PHPUnit.
- [ ] The tests for the new DKIM feature still have to be done as I don't have the necessary extension installed.

If someone could look at those three things I'd appreciate it.

Commits
-------

cd953a5 Remove Simpletest.
333a6e5 Move tests from Simpletest to PHPUnit and Mockery.
latest commit d5d580ca7c
Fabien Potencier fabpot authored
Octocat-spinner-32 doc Typos correction March 13, 2014
Octocat-spinner-32 lib Fix Swift_ByteStream_FileByteStream::read to match to the specification. April 13, 2014
Octocat-spinner-32 notes Whitespace fixes January 18, 2014
Octocat-spinner-32 tests Move tests from Simpletest to PHPUnit and Mockery. April 13, 2014
Octocat-spinner-32 .gitattributes added .gitattributes to fix wrong line-endings for crt, key and srl November 27, 2013
Octocat-spinner-32 .gitignore cleaned up .gitignore July 25, 2013
Octocat-spinner-32 .travis.yml Move tests from Simpletest to PHPUnit and Mockery. April 13, 2014
Octocat-spinner-32 CHANGES bumped version to 5.1.1-DEV March 18, 2014
Octocat-spinner-32 LICENSE fixed LICENSE file May 05, 2013
Octocat-spinner-32 README changed the license from LGPL to MIT April 26, 2013
Octocat-spinner-32 README.git Add Travis December 03, 2013
Octocat-spinner-32 VERSION bumped version to 5.1.1-DEV March 18, 2014
Octocat-spinner-32 build.xml Move tests from Simpletest to PHPUnit and Mockery. April 13, 2014
Octocat-spinner-32 composer.json Move tests from Simpletest to PHPUnit and Mockery. April 13, 2014
Octocat-spinner-32 create_pear_package.php added PEAR configuration October 19, 2009
Octocat-spinner-32 package.xml.tpl Whitespace fixes January 18, 2014
Octocat-spinner-32 phpunit.xml.dist Move tests from Simpletest to PHPUnit and Mockery. April 13, 2014
README
Swift Mailer
------------

Swift Mailer is a component based mailing solution for PHP 5.
It is released under the MIT license.

Homepage:      http://swiftmailer.org
Documentation: http://swiftmailer.org/docs
Mailing List:  http://groups.google.com/group/swiftmailer
Bugs:          https://github.com/swiftmailer/swiftmailer/issues
Repository:    https://github.com/swiftmailer/swiftmailer

Swift Mailer is highly object-oriented by design and lends itself
to use in complex web application with a great deal of flexibility.

For full details on usage, see the documentation.
Something went wrong with that request. Please try again.