El RIDO 9a9362789b addressing issues with failed attachement uploads due to webserver configuration, resolves #15 10 years ago
..
privatebin 7d1dc55a27 actually use local variable (for Codacy) 10 years ago
.gitignore 5a9879623f added incorrectly ignored unit test file, correcting ignore 10 years ago
.htaccess 535710cdd6 Add htaccess to prevent template access 10 years ago
README.md 79509ad48a renaming the fork to PrivateBin 10 years ago
auto.php ad70051323 reviewed unit tests, fixing line endings, added more tests 11 years ago
bootstrap.php 0e217a42c5 introduce new zerobincompatibility option, replacing the base64 one, if it is enabled, delete tokens use sha256; added per paste salt with server salt fallback; this resolves the points 2.2 & 2.9 in #103 10 years ago
configGenerator.php 79509ad48a renaming the fork to PrivateBin 10 years ago
configuration.php f8bc40b4e4 introducing automatic purging of expired pastes, triggered by default at least 5 minutes apart, deleting a maximum of 10 pastes - resolves #3 10 years ago
filter.php 694138c5d4 mostly finished with data model refactoring 10 years ago
i18n.php 608605cd54 incrementing version number, updating docs 11 years ago
jsonApi.php 79509ad48a renaming the fork to PrivateBin 10 years ago
model.php 7d1dc55a27 actually use local variable (for Codacy) 10 years ago
phpunit.xml 79509ad48a renaming the fork to PrivateBin 10 years ago
privatebin.php 9a9362789b addressing issues with failed attachement uploads due to webserver configuration, resolves #15 10 years ago
privatebinWithDb.php b53efda635 improving code coverage and unit testing 10 years ago
purgelimiter.php f8bc40b4e4 introducing automatic purging of expired pastes, triggered by default at least 5 minutes apart, deleting a maximum of 10 pastes - resolves #3 10 years ago
request.php 3b3b5277eb refactoring to improve code quality 10 years ago
serversalt.php 5980f8b603 removing some unused code detected by codacy 10 years ago
sjcl.php d04eab52c9 refactoring how attachments are stored 11 years ago
test.ini 79509ad48a renaming the fork to PrivateBin 10 years ago
trafficlimiter.php c175abaf77 improvements to get the HHVM build to pass 10 years ago
view.php c5606a47fe refactoring away RainTPL and templating, resolves #36 10 years ago
vizhash16x16.php 5980f8b603 removing some unused code detected by codacy 10 years ago

README.md

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-gd php5-sqlite php5-xdebug

To run the tests, just change into this directory and run phpunit:

$ cd PrivateBin/tst
$ phpunit