Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phar version? #26

Closed
Pierstoval opened this issue May 24, 2020 · 6 comments
Closed

Phar version? #26

Pierstoval opened this issue May 24, 2020 · 6 comments

Comments

@Pierstoval
Copy link
Collaborator

I wish there could be a scoped-phar version of Pest, to allow downloading in a blink of an eye without having to check anything on the current project, and without pest having compatibility issues with PHPUnit, nor the need for PHPUnit by the way.

PHPUnit has a scoped phar since version 8.1, and it has a special list of scripts to generate this scoped phar: https://github.com/sebastianbergmann/phpunit/tree/master/build/scripts

There's more documentation on how to achieve this there:

I hope this helps :)

I really wanted to contribute on this specific point, but I'm sadly completely overwhelmed by work and really tough personal issues, and I don't want to work on something I might not have time to do 😞

@nunomaduro
Copy link
Member

No plans to have this.

@owenvoke
Copy link
Member

owenvoke commented Nov 11, 2020

I started working on this the other day, and it's kind of complicated due to the way the test generation is done. 👍🏻 I've pushed up what I had so far to this branch if you're interested.

https://github.com/owenvoke/pest/tree/feature/phar

It's currently having an issue where Pest names all tests as /path/to/pest.phar::test name, which I'm trying to work out. I think this is due to the use of Backtrace::testFile()...

Ok, that issue can be resolved quite easily... Onto the next issue. 😬

@agarzon
Copy link

agarzon commented Feb 9, 2021

Most useful PHP tools in the world comes with PHAR files.

Composer, codeception, phpmd, deployer, robo, phpcpd, phpcs, phpunit, psysh, php-cs-fixer, and a long etc.... just saying.

@owenvoke
Copy link
Member

owenvoke commented Feb 9, 2021

I'm going to try and take another look at this, as I too think it would be beneficial. 👍🏻

@leocavalcante
Copy link

Pest is now the only one tool without a corresponding PHAR at https://github.com/opencodeco/phpctl

@owenvoke
Copy link
Member

owenvoke commented Jan 9, 2024

@leocavalcante, feel free to open a PR with support for building a PHAR. 👍🏻

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

No branches or pull requests

6 participants