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

Added configuration for socket handler #22

Merged
merged 1 commit into from
Sep 18, 2012

Conversation

hason
Copy link
Contributor

@hason hason commented Sep 17, 2012

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: #4 (partially)
License of the code: MIT

$this->getContainer(array(array('handlers' => array('socket' => array('type' => 'socket')))));
$this->fail();
} catch (\Exception $e) {
$this->assertInstanceOf('Symfony\Component\Config\Definition\Exception\InvalidConfigurationException', $e);
Copy link
Member

Choose a reason for hiding this comment

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

you should be catching only the exception you want to assert, so that other exceptions appear as an exception in the phpunit output, not as a failure about the instanceof check

Seldaek added a commit that referenced this pull request Sep 18, 2012
Added configuration for socket handler
@Seldaek Seldaek merged commit e1acd0a into symfony:master Sep 18, 2012
@Seldaek
Copy link
Member

Seldaek commented Sep 18, 2012

thanks

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.

3 participants