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

PHPUnit compatibility #87

Open
remicollet opened this issue Mar 1, 2021 · 4 comments
Open

PHPUnit compatibility #87

remicollet opened this issue Mar 1, 2021 · 4 comments

Comments

@remicollet
Copy link
Contributor

Managing PHPUnit compatibility is a real nightmare

Most often, PHP extensions use .phpt file instead of phpunit test case

For now, we are unable to run test suite with PHP 8 because of phpunit

This ticket is for discussion.

What should we do for tests ?

@eduardok
Copy link
Owner

eduardok commented Mar 2, 2021

So, you mean that even https://travis-ci.org/github/eduardok/libsmbclient-php/builds/761208019 is ugly enough ?
Check out my changes at https://github.com/eduardok/libsmbclient-php/tree/phpunit (won't merge like that, might squash).
I mean, it is ugly, but at least buys us time.

@eduardok
Copy link
Owner

eduardok commented Mar 3, 2021

I'm trying to understand that actual failure there... 20 vs 2.
Is ENOTDIR now returning 2, or is it some other issue? Haven't traced it yet...

@eduardok
Copy link
Owner

@remicollet if you have any comments on ENOTDIR returning 2 on PHP 8, please let me know. If it is the expected behaviour than I can probably add those changes to the master branch, and have the library tested on PHP 8 going forward.

@andypost
Copy link

andypost commented Aug 6, 2022

Used to try run tests for Alpinelinux and got new failure with PHP 8.1

1) StateInitTest::testStateInitInvalidState
TypeError: smbclient_state_init(): Argument #1 ($state) must be of type resource, null given

Not clear how to setup smb-server to test connection test

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

3 participants