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

Fix all test fails in master (just to check) #658

Merged
merged 3 commits into from
Nov 1, 2015

Conversation

kamazee
Copy link
Contributor

@kamazee kamazee commented Oct 31, 2015

Just a dummy pull request to check #655 and #657 together against travis

Since September'2015 Doctrine doesn't always save namespace version in
the cache itself:
doctrine/cache@ecc4af1

Relying on such kind of implementation detail in a test that is supposed
to check if several keys are saved in a cache is kind of pointless, so it
makes sense to ignore the cache key that holds a namespace version
AutoRotateFilterLoader tried to throw an exception that didn't exist
when it had received an image with invalid EXIF orientation tag.

It also used to fall back to exif_read_data when an old Imagine was used
and it wasn't tested properly which caused breaking a build.

The test is somewhat tricky. I've added an asset with a tiny JPEG that
has an EXIF orientation tag. When an old imagine is used, test reads an
image into memory, resets the orientation byte and makes ImageInterface
mock respond with the modified image when raw JPEG is requested.
@lsmith77 lsmith77 added the State: Reviewing This item is being reviewed to determine if it should be accepted. label Nov 1, 2015
lsmith77 added a commit that referenced this pull request Nov 1, 2015
Fix all test fails in master (just to check)
@lsmith77 lsmith77 merged commit 703ef5f into liip:master Nov 1, 2015
@lsmith77 lsmith77 removed the State: Reviewing This item is being reviewed to determine if it should be accepted. label Nov 1, 2015
@lsmith77
Copy link
Contributor

lsmith77 commented Nov 1, 2015

awesome!

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