PHP unit testing with Karma and Jasmine.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/php Tester files added to source control. Nov 13, 2015
tests Tidied before.php code. Dec 3, 2015
LICENSE Update Oct 14, 2016
package.json Update package.json Oct 14, 2016


PHP unit testing with Karma and Jasmine.



webserver running PHP5 e.g. IIS, Apache2


Download the code: npm install php-tester

Change to the php-tester directory: cd node_modules/php-tester

Install the dependencies: npm install

Open tests/karma.conf.js in a text editor.

Edit the URL for the location of: tests/php/test.php in the files list

    files: [

Note: test.php produces javascript code for the Jasmine testing framework.

Running Tests

Example PHP test specs are in the tests/php/specs/ folder.

Run the tests from the command line with:

npm test

Read more at the Home Page