Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests #18

Closed
ddeboer opened this issue Sep 28, 2013 · 3 comments
Closed

Add tests #18

ddeboer opened this issue Sep 28, 2013 · 3 comments

Comments

@ddeboer
Copy link
Owner

ddeboer commented Sep 28, 2013

How should we go about testing this library (preferably on Travis CI)? As much code in the library calls PHP’s \imap functions directly, mocking doesn't seem to make much sense.

Does anyone know of a fake IMAP server that we can use in unit tests? Or should we perhaps use a GMail test account for integration tests?

@burci
Copy link
Contributor

burci commented Sep 29, 2013

GMail test account is a good idea, as I see the same happens here : evanxd/gaia@aaafc81#L0R50

@ddeboer
Copy link
Owner Author

ddeboer commented Oct 3, 2013

WIP in branch testing. Before we can test this on Travis, we must wait for them to release updated VMs with PHP's IMAP extension enabled.

@ddeboer
Copy link
Owner Author

ddeboer commented Nov 22, 2013

It seems the IMAP extension is now installed on the Travis VM's, so our functional tests work!

@ddeboer ddeboer closed this as completed Nov 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants