paste.chapril.org-privatebin/tst
El RIDO 3a92c940a9 implementing media type negotiation (based on language negotiation
logic) in cases both JSON and (X)HTML are being requested, resolving #68
2016-04-08 23:29:44 +02:00
..
zerobin working on JSON-LD validity, added CORS headers preparing external API 2015-10-18 14:37:58 +02:00
.gitignore added incorrectly ignored unit test file, correcting ignore 2015-10-22 20:51:01 +02:00
auto.php reviewed unit tests, fixing line endings, added more tests 2015-08-15 18:32:31 +02:00
bootstrap.php changing paste read output for API refactoring 2015-10-18 11:08:28 +02:00
configGenerator.php incrementing version, updating changelog, added missing phpdoc comments 2015-11-09 21:39:42 +01:00
configuration.php re-introducing (optional) URL shortener support, resolves #58 2016-01-31 09:56:06 +01:00
filter.php mostly finished with data model refactoring 2015-09-27 03:03:55 +02:00
i18n.php incrementing version number, updating docs 2015-09-19 17:23:10 +02:00
jsonApi.php adding unit tests for all JSON-LD cases 2015-10-18 14:46:07 +02:00
model.php improving unit tests, fixing regression in DB model 2015-09-27 14:36:20 +02:00
phpunit.xml working on configuration unit test generator as described in #16 2015-08-29 01:26:48 +02:00
RainTPL.php re-introducing (optional) URL shortener support, resolves #58 2016-01-31 09:56:06 +01:00
README.md removed leftovers from submodule uglifyjs, added credits file, 2012-08-26 00:49:11 +02:00
request.php implementing media type negotiation (based on language negotiation 2016-04-08 23:29:44 +02:00
serversalt.php created initial unit tests for main zerobin class 2015-08-27 23:30:35 +02:00
sjcl.php refactoring how attachments are stored 2015-09-26 12:29:27 +02:00
test.ini slight configuration changes, template modifications to make discussions 2015-08-31 00:01:35 +02:00
trafficlimiter.php preparing unit test for model refactoring, refactoring traffic limiter 2015-09-26 17:57:46 +02:00
vizhash16x16.php fixing nasty deletion bug from #15, included unit tests to trigger it 2015-08-27 21:41:21 +02:00
zerobin.php re-introducing (optional) URL shortener support, resolves #58 2016-01-31 09:56:06 +01:00
zerobinWithDb.php adding UI tests for database configuration, fixed an issue with comment 2015-10-03 15:52:37 +02:00

Running unit tests

In order to run these tests, you will need to install the following packages and its dependencies:

  • phpunit
  • php5-gd
  • php5-sqlite
  • php5-xdebug

Example for Debian and Ubuntu: $ sudo aptitude install phpunit php5-mysql php5-xdebug

To run the tests, just change into this directory and run phpunit: $ cd ZeroBin/tst $ phpunit