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

Make tests/cases/test/FixturesTest run on Windows. #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hans-d
Copy link

@hans-d hans-d commented Jun 13, 2012

Seems that linux based systems return NULL on file_get_contents($file) in these cases, where Windows throws a fit^h^h^hexception.
Adjusted that non-existing files cannot be read. Fixes #5

Seems that linux based systems return NULL on file_get_contents($file) in these cases, where Windows throws a fit^h^h^hexception.
Adjusted that non-existing files cannot be read
);
$ships = Fixture::load('Pirate', $options);
$path = dirname(dirname(__DIR__)).'/fixtures/{:file}.{:type}';
$options = array('path' => $path);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can change this to $options = compact('path');.

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.

tests throw exceptions when run on windows
2 participants