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

test error #10

Open
Embiggenerd opened this issue Apr 13, 2024 · 0 comments
Open

test error #10

Embiggenerd opened this issue Apr 13, 2024 · 0 comments

Comments

@Embiggenerd
Copy link

Embiggenerd commented Apr 13, 2024

Hi, loved the series. One question: when running on the router, the test fails with this error:

"Call to undefined function Core\basePath()"

I vardumped __DIR__, both during test and running the server, it shows it's the /Core directory.

The phpunit.xml file does seem to have the correct bootstrap value:

<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"

I have been googling around for a few hours, seems this shouldn't be happening. Enjoyed the series, great teaching style, probably the best tutorial I've ever done on youtube

I should add, everything works while running the app.

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

No branches or pull requests

1 participant