Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
Updated readme, added phpunit5 phar for testing purposes.
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymarois committed Jul 14, 2018
1 parent ed97845 commit 7be6b09
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,14 +464,13 @@ Inspired by [Flywheel](https://github.com/jamesmoss/flywheel) and [Flinetone](ht

## Sites and Users of Filebase

* [Adwords Management](https://greyscale.com)
* [Free Games](http://onlinefun.com)
* [Grayscale Inc](https://grayscale.com)
* [VIP Auto](http://vipautoli.com)
* [Timothy Marois](http://timothymarois.com)
* [Ideal Internet](http://idealinternet.com)
* [Script Automate](https://github.com/timothymarois/ScriptAutomate)
* [OnlineFun](http://onlinefun.com)
* [PuzzlePlay](http://puzzleplay.com)
* [Square Media LLC](http://squaremedia.com)
* [Ad Serving Platform](http://playbanners.com)
* [My Map Directions](https://mymapdirections.com)

*If you are using Filebase on your website, send in a pull request and we will put your site up here.*

Expand Down
52 changes: 52 additions & 0 deletions phpunit5
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#!/usr/bin/env php
<?php
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

if (version_compare('5.6.0', PHP_VERSION, '>')) {
fwrite(
STDERR,
sprintf(
'This version of PHPUnit is supported on PHP 5.6 and PHP 7.0.' . PHP_EOL .
'You are using PHP %s (%s).' . PHP_EOL,
PHP_VERSION,
PHP_BINARY
)
);

die(1);
}

if (!ini_get('date.timezone')) {
ini_set('date.timezone', 'UTC');
}

foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
if (file_exists($file)) {
define('PHPUNIT_COMPOSER_INSTALL', $file);

break;
}
}

unset($file);

if (!defined('PHPUNIT_COMPOSER_INSTALL')) {
fwrite(STDERR,
'You need to set up the project dependencies using the following commands:' . PHP_EOL .
'wget http://getcomposer.org/composer.phar' . PHP_EOL .
'php composer.phar install' . PHP_EOL
);

die(1);
}

require PHPUNIT_COMPOSER_INSTALL;

PHPUnit_TextUI_Command::main();

0 comments on commit 7be6b09

Please sign in to comment.