Skip to content

Commit

Permalink
Fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Mar 12, 2014
1 parent b3580a8 commit 1405643
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 32 deletions.
20 changes: 10 additions & 10 deletions src/Behat/YiiExtension/Context/Initializer/YiiAwareInitializer.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?php

namespace Behat\YiiExtension\Context\Initializer;

use Behat\Behat\Context\Initializer\InitializerInterface,
Behat\Behat\Context\ContextInterface;

use Behat\YiiExtension\Context\YiiAwareContextInterface;

/*
* This file is part of the Behat\YiiExtension.
* This file is part of the Behat\YiiExtension
*
* (c) Konstantin Kudryashov <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Behat\YiiExtension\Context\Initializer;

use Behat\Behat\Context\Initializer\InitializerInterface;
use Behat\Behat\Context\ContextInterface;
use Behat\YiiExtension\Context\YiiAwareContextInterface;

/**
* Yii aware contexts initializer.
* Sets Yii web app instance to the YiiAware contexts.
Expand Down
11 changes: 6 additions & 5 deletions src/Behat/YiiExtension/Context/YiiAwareContextInterface.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<?php

namespace Behat\YiiExtension\Context;

/*
* This file is part of the Behat\YiiExtension.
* This file is part of the Behat\YiiExtension
*
* (c) Konstantin Kudryashov <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Behat\YiiExtension\Context;

/**
* Yii aware interface for contexts.
*
Expand Down
17 changes: 8 additions & 9 deletions src/Behat/YiiExtension/Extension.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?php

namespace Behat\YiiExtension;

use Symfony\Component\Config\FileLocator,
Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition,
Symfony\Component\DependencyInjection\ContainerBuilder,
Symfony\Component\DependencyInjection\Loader\XmlFileLoader;

use Behat\Behat\Extension\Extension as BaseExtension;

/*
* This file is part of the Behat\YiiExtension
*
Expand All @@ -18,6 +9,14 @@
* with this source code in the file LICENSE.
*/

namespace Behat\YiiExtension;

use Behat\Behat\Extension\Extension as BaseExtension;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;

/**
* Yii extension for Behat class.
*
Expand Down
6 changes: 2 additions & 4 deletions src/Behat/YiiExtension/services/sessions/wunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>

<parameters>
<parameter key="behat.mink.driver.wunit.class">Behat\Mink\Driver\WUnitDriver</parameter>
<parameter key="behat.yii_extension.web_application_factory">\WUnit\WUnit</parameter>

</parameters>
<services>

<services>
<service id="behat.mink.session.wunit" class="%behat.mink.session.class%">
<argument type="service">
<service class="%behat.mink.driver.wunit.class%">
Expand All @@ -18,6 +17,5 @@
<argument type="service" id="behat.mink.selector.handler" />
<tag name="behat.mink.session" alias="wunit" />
</service>

</services>
</container>
6 changes: 2 additions & 4 deletions src/Behat/YiiExtension/services/yii.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,20 @@
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>

<parameters>
<parameter key="behat.yii_extension.context.initializer.class">Behat\YiiExtension\Context\Initializer\YiiAwareInitializer</parameter>
<parameter key="behat.yii_extension.framework_script"></parameter>
<parameter key="behat.yii_extension.config_script"></parameter>
<parameter key="behat.yii_extension.web_application_factory">\Yii</parameter>

</parameters>
<services>

<services>
<service id="behat.yii_extension.context.initializer" class="%behat.yii_extension.context.initializer.class%">
<argument>%behat.yii_extension.framework_script%</argument>
<argument>%behat.yii_extension.config_script%</argument>
<argument>%behat.yii_extension.web_application_factory%</argument>
<tag name="behat.context.initializer" />
</service>

</services>
</container>

0 comments on commit 1405643

Please sign in to comment.