Skip to content

Commit ae6e560

Browse files
committed
tests: added how to run tests and introduced tests config files
1 parent efd4f8d commit ae6e560

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,17 @@ MailLibrary
33

44
A PHP library for downloading mails from server.
55

6-
Documentation can be found at http://greeny.github.io/MailLibrary/.
6+
Documentation can be found at http://greeny.github.io/MailLibrary/.
7+
8+
Testing
9+
-------
10+
11+
Install dependencies using composer and then run following in library root directory.
12+
13+
````cmd
14+
# Unix
15+
vendor\bin\tester -c tests\php-unix.ini tests
16+
17+
# Windows
18+
vendor\bin\tester -c tests\php-windows.ini tests
19+
````

tests/php-unix.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[PHP]
2+
;extension_dir = "./ext"
3+
extension=mbstring.so
4+
extension=imap.so
5+
date.timezone = "Europe/Prague"

tests/php-windows.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[PHP]
2+
extension_dir = "./ext"
3+
extension=php_mbstring.dll
4+
extension=php_imap.dll
5+
date.timezone = "Europe/Prague"

0 commit comments

Comments
 (0)