Import phpunit binary
authorRaphaël Gertz <git@rapsys.eu>
Wed, 27 Nov 2019 09:44:33 +0000 (10:44 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 27 Nov 2019 09:44:33 +0000 (10:44 +0100)
bin/phpunit [new file with mode: 0644]

diff --git a/bin/phpunit b/bin/phpunit
new file mode 100644 (file)
index 0000000..4d1ed05
--- /dev/null
@@ -0,0 +1,13 @@
+#!/usr/bin/env php
+<?php
+
+if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
+    echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
+    exit(1);
+}
+
+if (false === getenv('SYMFONY_PHPUNIT_DIR')) {
+    putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
+}
+
+require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';