Skip to content
This repository has been archived by the owner on Apr 12, 2018. It is now read-only.

Please describe, how to use phpuni.phar without Composer and a PHP CLI #153

Closed
Stefan-P opened this issue Oct 15, 2013 · 2 comments
Closed

Comments

@Stefan-P
Copy link

In certain environments, developers don't have access to the PHP CLI due to corporate security guidelines.

If user additionally, can't or won't use Composer, the description found at http://phpunit.de/manual/current/en/installation.html isn't sufficient to start work with PHPUnit.

Therefore I propose to add a short section how to use phpunit.phar purely from within a PHP script.

More specifically, describe how to simulate arguments passed by means of argv values along to a Phar('phpunit.phar') object.

@LeamHall
Copy link

I would also like a way to use phpunit without remote connectivity. I can copy the phpunit.phar on to the server but the instructions at:
http://phpunit.de/manual/current/en/installation.html

Do not work with the tests on page:
http://phpunit.de/manual/current/en/writing-tests-for-phpunit.html

Giving:
PHP Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /my/home/path/StackTest.php on line 4

@sebastianbergmann
Copy link
Owner

Have a look at http://phpunit.de/getting-started.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants