8000 Fix test suite on windows: skip on missing extensions, correct path flags by Tobion · Pull Request #911 · doctrine/dbal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix test suite on windows: skip on missing extensions, correct path flags #911

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

Merged
merged 1 commit into from
Jul 15, 2016
Merged

Fix test suite on windows: skip on missing extensions, correct path flags #911

merged 1 commit into from
Jul 15, 2016

Conversation

Tobion
Copy link
Contributor
@Tobion Tobion commented Sep 22, 2015

extracted from #718

@doctrinebot
Copy link

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

http://www.doctrine-project.org/jira/browse/DBAL-1306

We use Jira to track the state of pull requests and the versions they got
included in.

@@ -314,7 +315,8 @@ public function testConnectionExceptionSqLite($mode, $exceptionClass)
public function getSqLiteOpenConnection()
{
return array(
array(0000, '\Doctrine\DBAL\Exception\ConnectionException'),
// mode 0 is considered read-only on Windows
array(0000, '\\' !== DIRECTORY_SEPARATOR ? '\Doctrine\DBAL\Exception\ConnectionException' : '\Doctrine\DBAL\Exception\ReadOnlyException'),
Copy link

Choose a reason for hiding this comment

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

I'd rather not infer the host-OS based on the directory-separator. Maybe look at the PHP_OS constant instead? I've seen other projects check the presence of the PHP_WINDOWS_VERSION_BUILD constant as well.

Copy link
Member

Choose a reason for hiding this comment

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

+1 we should check it with PHP constants.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed

@Tobion
Copy link
Contributor Author
Tobion commented Jun 6, 2016

@deeky666 ping

@deeky666 deeky666 added this to the 2.6 milestone Jul 15, 2016
@deeky666 deeky666 self-assigned this Jul 15, 2016
@deeky666 deeky666 merged commit e4c143f into doctrine:master Jul 15, 2016
@deeky666
Copy link
Member

@Tobion thanks!

@Tobion Tobion deleted the fix-tests-on-windows branch July 15, 2016 22:08
@Ocramius Ocramius changed the title fix dbal tests on windows Fix test suite on windows: skip on missing extensions, correct path flags Jul 22, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0