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

Apply speedup to fixtures with no records as well #12

Merged
merged 1 commit into from
Aug 13, 2018

Conversation

JoepRoebroek
Copy link
Contributor

When a fixture describes a table but has no records, $result['Checksum'] returns '0', resulting in the empty check to always return true, even though the table is already loaded. By switching to array_key_exists, this can be solved, and fixtures without records also enjoy the speedup.

When a fixture describes a table but has no records, `$result['Checksum']` returns '0', resulting in the empty check to always return true, even though the table is already loaded. By switching to array_key_exists, this can be solved, and fixtures without records also enjoy the speedup.
@JoepRoebroek JoepRoebroek changed the title Update ChecksumTestFixture.php Apply speedup to fixtures with no records as well Jan 25, 2018
@dakota dakota merged commit 12d5be4 into FriendsOfCake:master Aug 13, 2018
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

Successfully merging this pull request may close these issues.

2 participants