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

[BUG]: PHP crashes without any message when trying mocking classes, inherited from Phalcon\Mvc\Model #16096

Closed
ktsv opened this issue Sep 16, 2022 · 5 comments · Fixed by #16100
Assignees
Labels
5.0 The issues we want to solve in the 5.0 release bug A bug report external dependency This issue depends on external issue to be resolved.

Comments

@ktsv
Copy link

ktsv commented Sep 16, 2022

[BUG]: PHP crashes without any message when trying mocking classes, inherited from Phalcon\Mvc\Model

Create test, mock any class, inherited from Phalcon\Mvc\Model.

        $this->entity = $this->createMock(Entity::class);

I expect mock to be returned
Actually system fails without any message

  • Phalcon version: 5.0.0RC4
  • PHPunit version 9.5.24
  • Codeception version: 4.2.2
  • PHP Version: 8.0.23
  • Operating System: Debian linux
  • Installation type: Compiling from source
  • Server: Nginx
@ktsv ktsv added bug A bug report status: unverified Unverified labels Sep 16, 2022
@ktsv
Copy link
Author

ktsv commented Sep 16, 2022

this probably happens because some methodh in Phalcon (I was able to find few besides this one) have null as return type

@Jeckerson Jeckerson added 5.0 The issues we want to solve in the 5.0 release external dependency This issue depends on external issue to be resolved. and removed status: unverified Unverified labels Sep 16, 2022
@Jeckerson
Copy link
Member

Related #16080

@Jeckerson
Copy link
Member

Already fixed in #16080

@Jeckerson
Copy link
Member

This issue will be used to fix another similar bugs.

Jeckerson added a commit that referenced this issue Sep 17, 2022
Jeckerson added a commit that referenced this issue Sep 17, 2022
Jeckerson added a commit that referenced this issue Sep 17, 2022
Jeckerson added a commit that referenced this issue Sep 17, 2022
@Jeckerson Jeckerson linked a pull request Sep 17, 2022 that will close this issue
5 tasks
Jeckerson added a commit that referenced this issue Sep 17, 2022
Jeckerson added a commit that referenced this issue Sep 17, 2022
Jeckerson added a commit that referenced this issue Sep 17, 2022
Jeckerson added a commit that referenced this issue Sep 17, 2022
niden added a commit that referenced this issue Sep 18, 2022
@niden
Copy link
Sponsor Member

niden commented Sep 18, 2022

Resolved in #16100

Thank you @ktsv

@niden niden closed this as completed Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5.0 The issues we want to solve in the 5.0 release bug A bug report external dependency This issue depends on external issue to be resolved.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants