Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

Allow keyspace to be null #27

Merged
merged 1 commit into from
Nov 15, 2016

Conversation

NastasiaSabyZenika
Copy link

@NastasiaSabyZenika NastasiaSabyZenika commented Nov 14, 2016

Separation between client configuration and connection configuration (with keyspaces defined).
We do not have to define a keyspace for a new client.

@NastasiaSaby NastasiaSaby force-pushed the feature/keyspace-and-client-management branch from 5742ee6 to 037393b Compare November 14, 2016 16:54
* @dataProvider unexpectedConfigValueDataProvider
*/
public function testUnexpectedValueConfig($configs)
{
$parameterBag = new ParameterBag(array('kernel.debug' => true));
$container = new ContainerBuilder($parameterBag);

$this->if($extension = new TestedClass())
->exception(function() use($extension, $configs, $container) {
$this->if ($extension = new TestedClass())
Copy link
Member

Choose a reason for hiding this comment

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

if () => it's weird to have a space between a methodName and its bracket

Copy link
Member

Choose a reason for hiding this comment

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

bracket ? { :trollface:

Copy link
Member

@Oliboy50 Oliboy50 Nov 14, 2016

Choose a reason for hiding this comment

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

[ ] => Brackets
( ) => Round brackets or parentheses
{ } => Curly brackets or braces
〈 〉=> Angle brackets or chevrons

bracket works for everything :trollface:

@@ -236,16 +278,20 @@ public function testInvalidConfig()
$parameterBag = new ParameterBag(array('kernel.debug' => true));
$container = new ContainerBuilder($parameterBag);

$this->if($extension = new TestedClass())
->exception(function() use($extension, $configs, $container) {
$this->if ($extension = new TestedClass())
Copy link
Member

Choose a reason for hiding this comment

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

same

@NastasiaSaby NastasiaSaby force-pushed the feature/keyspace-and-client-management branch from 037393b to f4c1b66 Compare November 15, 2016 08:13
@@ -213,13 +252,16 @@ public function testUnexpectedValueConfig($configs)
$container = new ContainerBuilder($parameterBag);

$this->if($extension = new TestedClass())
->exception(function() use($extension, $configs, $container) {
->exception(function () use ($extension, $configs, $container) {
$extension->load($configs, $container);
})
->isInstanceOf('\Symfony\Component\Config\Definition\Exception\InvalidConfigurationException');

Choose a reason for hiding this comment

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

Petite ligne en trop ?

@NastasiaSaby NastasiaSaby force-pushed the feature/keyspace-and-client-management branch from f4c1b66 to c95374c Compare November 15, 2016 09:04
@NastasiaSaby NastasiaSaby merged commit 639bca9 into master Nov 15, 2016
@NastasiaSaby NastasiaSaby deleted the feature/keyspace-and-client-management branch November 15, 2016 09:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants