Comments (3)
Ok. In my libs/bin/pest file
, I have :
#!/usr/bin/env php
<?php
/**
* Proxy PHP file generated by Composer
*
* This file includes the referenced bin path (../pestphp/pest/bin/pest)
* using a stream wrapper to prevent the shebang from being output on PHP<8
*
* @generated
*/
namespace Composer;
$GLOBALS['_composer_bin_dir'] = __DIR__;
$GLOBALS['_composer_autoload_path'] = __DIR__ . '/..'.'/autoload.php';
if (PHP_VERSION_ID < 80000) {
[...]
So, if I replace Line 54 of pestphp/pest/bin/pest
:
$vendorPath = dirname(__DIR__, 4).'/vendor/autoload.php';
by
$vendorPath = $GLOBALS['_composer_autoload_path'];
it's working for me.
But this fix is linked to the version of composer (2.7.2) and i don't know in which version composer introduce $GLOBALS['_composer_autoload_path'] and which minimum version of composer you want to support.
So I don't make PR. (I don't want to break other people.)
from pest.
Well... not really working.
.\libs\bin\pest --init
create file in libs\bin\
directory and after I move the files .\libs\bin\pest
show :
INFO Cannot open bootstrap script "D:\[...]\MyOidc\vendor/autoload.php".
from pest.
Ok I found.
In phpunit.xml, I must replace :
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
by
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
bootstrap="libs/autoload.php"
colors="true"
>
Perhaps this can be added in the documention ?
from pest.
Related Issues (20)
- Architecture expectations passing when they are expected to fail. HOT 2
- [Bug]: PhpStorm generated Regex filtering out the tests when using 3.x-dev release HOT 2
- [Bug]: Misleading coverage error with read-only vendor
- [Bug]: Tests in parallel are not counting
- [Bug]: DEPR error doesn't show file name.
- [Bug]: --fail-on-risky does not seem to work
- [Bug]: Unknown option "--parallel". github workflow HOT 5
- [Bug]: Could not bind closure. HOT 1
- [Bug]: Text coverage not compatible with coverage-php HOT 1
- [Bug]: Running tests in parallel causes SQLSTATE[HY000] [2006] MySQL server has gone away
- [Bug]: method directoriesByNamespace replacing prefix multiple times resulting in false positive because the directory is not found
- [Bug]: No tests found when filter group with phpunit testcases HOT 1
- [Bug]: mixed-in expectation object causes IDE type errors
- [Bug]: Skipped installation of bin bin/paratest.bat for package brianium/paratest: name conflicts with an existing file HOT 6
- [Bug]: invalid dataset not showing as FAILED when running with --parallel
- [Bug]: Pest + PHP Matcher = simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found
- [Bug]: Pest option --list-groups
- [Bug]: --update-snapshots deletes all snapshots
- Call to undefined method TestCase::get() HOT 1
- No debug functions test cousing memory leak (with Filament installed)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pest.