El RIDO 9bde729cb5 Merge pull request #54 from Sobak/coding-style %!s(int64=10) %!d(string=hai) anos
..
privatebin 5d7003ecc1 Convert to PSR-2 coding style (using phpcs-fixer) %!s(int64=10) %!d(string=hai) anos
.gitignore 5a9879623f added incorrectly ignored unit test file, correcting ignore %!s(int64=10) %!d(string=hai) anos
.htaccess 535710cdd6 Add htaccess to prevent template access %!s(int64=10) %!d(string=hai) anos
README.md 79509ad48a renaming the fork to PrivateBin %!s(int64=10) %!d(string=hai) anos
bootstrap.php 5d7003ecc1 Convert to PSR-2 coding style (using phpcs-fixer) %!s(int64=10) %!d(string=hai) anos
configGenerator.php 5d7003ecc1 Convert to PSR-2 coding style (using phpcs-fixer) %!s(int64=10) %!d(string=hai) anos
configuration.php 5d7003ecc1 Convert to PSR-2 coding style (using phpcs-fixer) %!s(int64=10) %!d(string=hai) anos
filter.php 54f96b9938 Introduce PSR-4 autoloading %!s(int64=10) %!d(string=hai) anos
i18n.php 54f96b9938 Introduce PSR-4 autoloading %!s(int64=10) %!d(string=hai) anos
jsonApi.php 9bde729cb5 Merge pull request #54 from Sobak/coding-style %!s(int64=10) %!d(string=hai) anos
model.php 5d7003ecc1 Convert to PSR-2 coding style (using phpcs-fixer) %!s(int64=10) %!d(string=hai) anos
phpunit.xml 54f96b9938 Introduce PSR-4 autoloading %!s(int64=10) %!d(string=hai) anos
privatebin.php 9bde729cb5 Merge pull request #54 from Sobak/coding-style %!s(int64=10) %!d(string=hai) anos
privatebinWithDb.php 5d7003ecc1 Convert to PSR-2 coding style (using phpcs-fixer) %!s(int64=10) %!d(string=hai) anos
purgelimiter.php 5d7003ecc1 Convert to PSR-2 coding style (using phpcs-fixer) %!s(int64=10) %!d(string=hai) anos
request.php 54f96b9938 Introduce PSR-4 autoloading %!s(int64=10) %!d(string=hai) anos
serversalt.php 5d7003ecc1 Convert to PSR-2 coding style (using phpcs-fixer) %!s(int64=10) %!d(string=hai) anos
sjcl.php 54f96b9938 Introduce PSR-4 autoloading %!s(int64=10) %!d(string=hai) anos
test.ini 79509ad48a renaming the fork to PrivateBin %!s(int64=10) %!d(string=hai) anos
trafficlimiter.php 54f96b9938 Introduce PSR-4 autoloading %!s(int64=10) %!d(string=hai) anos
view.php 54f96b9938 Introduce PSR-4 autoloading %!s(int64=10) %!d(string=hai) anos
vizhash16x16.php 5d7003ecc1 Convert to PSR-2 coding style (using phpcs-fixer) %!s(int64=10) %!d(string=hai) anos

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