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

strign contains in array has a strange behavior #839

Open
trasher opened this issue Nov 7, 2019 · 0 comments
Open

strign contains in array has a strange behavior #839

trasher opened this issue Nov 7, 2019 · 0 comments

Comments

@trasher
Copy link
Contributor

trasher commented Nov 7, 2019

There are several strange behaviors when trying to tests array values from the array asserter.

An example I've just fixed (see glpi-project/glpi@01e3e10).

The $this->array($event->fields)->string['name']->contains('Copy of %s') should have fail because the name is "Copy of test event to clone". Most strange is I have the same code working and not working on different glpi branches, but the same atoum, php, etc... versions (I still cannot explain that).

In GLPI team, several person (incluging myself) already has quite strange issues with assertions on array values; but I cannot give more details, nor always reproducible use case right now.

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