22
33The PHP SASL Authentification Library.
44
5- [ ![ Latest Stable Version] ( https://poser.pugx.org/fabiang/sasl/v/stable.svg )] ( https://packagist.org/packages/fabiang/sasl ) [ ![ Total Downloads] ( https://poser.pugx.org/fabiang/sasl/downloads.svg )] ( https://packagist.org/packages/fabiang/sasl ) [ ![ License] ( https://poser.pugx.org/fabiang/sasl/license.svg )] ( https://packagist.org/packages/fabiang/sasl )
6- [ ![ Build Status] ( https://travis-ci.com/fabiang/sasl.svg?branch=master )] ( https://travis-ci.com/fabiang/sasl ) [ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/fabiang/sasl/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/fabiang/sasl/?branch=master ) [ ![ SensioLabsInsight] ( https://insight.sensiolabs.com/projects/e81e1e30-c545-420a-8a0c-59b60976f54b/mini.png )] ( https://insight.sensiolabs.com/projects/e81e1e30-c545-420a-8a0c-59b60976f54b ) [ ![ Coverage Status] ( https://img.shields.io/coveralls/fabiang/sasl.svg )] ( https://coveralls.io/r/fabiang/sasl )
5+ [ ![ Latest Stable Version] ( https://poser.pugx.org/fabiang/sasl/v/stable.svg )] ( https://packagist.org/packages/fabiang/sasl )
6+ [ ![ Total Downloads] ( https://poser.pugx.org/fabiang/sasl/downloads.svg )] ( https://packagist.org/packages/fabiang/sasl )
7+ [ ![ License] ( https://poser.pugx.org/fabiang/sasl/license.svg )] ( https://packagist.org/packages/fabiang/sasl )
8+ [ ![ Unit Tests] ( https://github.com/fabiang/sasl/actions/workflows/unit.yml/badge.svg?branch=develop )] ( https://github.com/fabiang/sasl/actions/workflows/unit.yml )
9+ [ ![ Integration Tests] ( https://github.com/fabiang/sasl/actions/workflows/behat.yml/badge.svg?branch=develop )] ( https://github.com/fabiang/sasl/actions/workflows/behat.yml )
10+ [ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/fabiang/sasl/badges/quality-score.png?b=develop )] ( https://scrutinizer-ci.com/g/fabiang/sasl/?branch=develop )
11+ [ ![ Code Coverage] ( https://scrutinizer-ci.com/g/fabiang/sasl/badges/coverage.png?b=develop )] ( https://scrutinizer-ci.com/g/fabiang/sasl/?branch=develop )
712
813Provides code to generate responses to common SASL mechanisms, including:
914* Digest-MD5
@@ -80,7 +85,7 @@ again and send the returned value to the server.
8085| Plain | yes | yes | optional | no | no | no |
8186| SCRAM-* | yes | yes | optional | no | no | yes |
8287
83- ## Developing
88+ ## Unit tests
8489
8590If you like this library and you want to contribute, make sure the unit tests
8691and integration tests are running. Composer will help you to install the right
@@ -93,18 +98,37 @@ composer install --dev
9398After that run the unit tests:
9499
95100```
96- ./vendor/bin/phpunit -c tests
101+ ./vendor/bin/phpunit
97102```
98103
104+ ## Integration tests
105+
99106The integration tests verify the authentication methods against an Ejabberd and Dovecot server.
107+
108+ ### Docker Compose
109+
110+ To launch the servers you can use the provided Docker Compose file.
111+ Just [ install Docker] ( https://www.docker.com/get-started/ ) and run:
112+
113+ ```
114+ docker-compose up -d
115+ ```
116+
117+ ** Note:** ejabberd takes around * ten minutes* to start.
118+
119+ ### Vagrant
120+
100121To launch the servers you can use the provided Vagrant box.
101- Just [ install Vagrant] ( https://www.vagrantup.com/downloads.html ) and run:
122+ Just [ install Vagrant] ( https://www.vagrantup.com/downloads ) and run:
102123
103124```
104125vagrant up
105126```
106127
107128After some minutes you'll have the runnig server instances inside of a virtual machine.
129+
130+ ### RUN
131+
108132Now you can run the integration tests:
109133
110134```
0 commit comments