From 24012515e5b331be59a5968762386371efbe7648 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Sat, 4 Jan 2014 11:49:37 +0100 Subject: [PATCH] Moved the license header to the top of the file --- .../MinkExtension/Compiler/SelectorsPass.php | 17 ++++++++--------- .../MinkExtension/Compiler/SessionsPass.php | 17 ++++++++--------- .../ClassGuesser/MinkContextClassGuesser.php | 8 ++++++++ .../Initializer/MinkAwareInitializer.php | 16 ++++++++-------- .../Context/MinkAwareInterface.php | 10 +++++----- .../MinkExtension/Context/MinkContext.php | 12 ++++++------ .../MinkExtension/Context/MinkDictionary.php | 17 ++++++++--------- .../MinkExtension/Context/RawMinkContext.php | 18 +++++++++--------- src/Behat/MinkExtension/Extension.php | 19 +++++++++---------- .../Listener/FailureShowListener.php | 18 +++++++++--------- .../Listener/SessionsListener.php | 16 ++++++++-------- 11 files changed, 86 insertions(+), 82 deletions(-) diff --git a/src/Behat/MinkExtension/Compiler/SelectorsPass.php b/src/Behat/MinkExtension/Compiler/SelectorsPass.php index b0657b5..118a057 100644 --- a/src/Behat/MinkExtension/Compiler/SelectorsPass.php +++ b/src/Behat/MinkExtension/Compiler/SelectorsPass.php @@ -1,20 +1,19 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Behat\MinkExtension\Compiler; use Symfony\Component\DependencyInjection\Reference, Symfony\Component\DependencyInjection\ContainerBuilder, Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; -/* - * This file is part of the Behat\MinkExtension - * - * (c) Konstantin Kudryashov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * Selectors handler compilation pass. Registers all available Mink selector engines. * diff --git a/src/Behat/MinkExtension/Compiler/SessionsPass.php b/src/Behat/MinkExtension/Compiler/SessionsPass.php index 44e1661..5b8bd68 100644 --- a/src/Behat/MinkExtension/Compiler/SessionsPass.php +++ b/src/Behat/MinkExtension/Compiler/SessionsPass.php @@ -1,20 +1,19 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Behat\MinkExtension\Compiler; use Symfony\Component\DependencyInjection\Reference, Symfony\Component\DependencyInjection\ContainerBuilder, Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; -/* - * This file is part of the Behat\MinkExtension - * - * (c) Konstantin Kudryashov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * Behat\Mink container compilation pass. * Registers all available in controller Mink sessions. diff --git a/src/Behat/MinkExtension/Context/ClassGuesser/MinkContextClassGuesser.php b/src/Behat/MinkExtension/Context/ClassGuesser/MinkContextClassGuesser.php index da75d34..01d9a20 100644 --- a/src/Behat/MinkExtension/Context/ClassGuesser/MinkContextClassGuesser.php +++ b/src/Behat/MinkExtension/Context/ClassGuesser/MinkContextClassGuesser.php @@ -1,5 +1,13 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Behat\MinkExtension\Context\ClassGuesser; use Behat\Behat\Context\ClassGuesser\ClassGuesserInterface; diff --git a/src/Behat/MinkExtension/Context/Initializer/MinkAwareInitializer.php b/src/Behat/MinkExtension/Context/Initializer/MinkAwareInitializer.php index 9b8d7d1..bebfe1c 100644 --- a/src/Behat/MinkExtension/Context/Initializer/MinkAwareInitializer.php +++ b/src/Behat/MinkExtension/Context/Initializer/MinkAwareInitializer.php @@ -1,5 +1,13 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Behat\MinkExtension\Context\Initializer; use Behat\Behat\Context\Context; @@ -8,14 +16,6 @@ use Behat\Behat\Context\Initializer\ContextInitializer; use Behat\Mink\Mink; use Behat\MinkExtension\Context\MinkAwareInterface; -/* - * This file is part of the Behat\MinkExtension. - * (c) Konstantin Kudryashov - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - /** * Mink aware contexts initializer. * Sets Mink instance and parameters to the MinkAware contexts. diff --git a/src/Behat/MinkExtension/Context/MinkAwareInterface.php b/src/Behat/MinkExtension/Context/MinkAwareInterface.php index 47aa810..477a416 100644 --- a/src/Behat/MinkExtension/Context/MinkAwareInterface.php +++ b/src/Behat/MinkExtension/Context/MinkAwareInterface.php @@ -1,17 +1,17 @@ * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace Behat\MinkExtension\Context; + +use Behat\Mink\Mink; + /** * Mink aware interface for contexts. * diff --git a/src/Behat/MinkExtension/Context/MinkContext.php b/src/Behat/MinkExtension/Context/MinkContext.php index 7f5edb1..c21f4dc 100644 --- a/src/Behat/MinkExtension/Context/MinkContext.php +++ b/src/Behat/MinkExtension/Context/MinkContext.php @@ -1,18 +1,18 @@ * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace Behat\MinkExtension\Context; + +use Behat\Behat\Context\TranslatableContext; +use Behat\Gherkin\Node\TableNode; + /** * Mink context for Behat BDD tool. * Provides Mink integration and base step definitions. diff --git a/src/Behat/MinkExtension/Context/MinkDictionary.php b/src/Behat/MinkExtension/Context/MinkDictionary.php index bed0882..7a940d1 100644 --- a/src/Behat/MinkExtension/Context/MinkDictionary.php +++ b/src/Behat/MinkExtension/Context/MinkDictionary.php @@ -1,21 +1,20 @@ * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace Behat\MinkExtension\Context; + +use Behat\Gherkin\Node\TableNode; +use Behat\Mink\Mink; +use Behat\Mink\Session; +use Behat\Mink\WebAssert; + /** * Mink steps dictionary for Behat BDD tool. * diff --git a/src/Behat/MinkExtension/Context/RawMinkContext.php b/src/Behat/MinkExtension/Context/RawMinkContext.php index cb23cdb..8c151d8 100644 --- a/src/Behat/MinkExtension/Context/RawMinkContext.php +++ b/src/Behat/MinkExtension/Context/RawMinkContext.php @@ -1,21 +1,21 @@ * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace Behat\MinkExtension\Context; + +use Behat\Behat\Context\Context; + +use Behat\Mink\Mink; +use Behat\Mink\WebAssert; +use Behat\Mink\Session; + /** * Raw Mink context for Behat BDD tool. * Provides raw Mink integration (without step definitions) and web assertions. diff --git a/src/Behat/MinkExtension/Extension.php b/src/Behat/MinkExtension/Extension.php index 92a5480..a022fac 100644 --- a/src/Behat/MinkExtension/Extension.php +++ b/src/Behat/MinkExtension/Extension.php @@ -1,5 +1,13 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Behat\MinkExtension; use Behat\MinkExtension\Compiler\SelectorsPass; @@ -11,15 +19,6 @@ use Symfony\Component\Config\FileLocator, use Behat\Testwork\ServiceContainer\Extension as BaseExtension; -/* - * This file is part of the Behat\MinkExtension - * - * (c) Konstantin Kudryashov - * - * This source file is subject to the MIT license that is bundled - * with this source code in the file LICENSE. - */ - /** * Mink extension for Behat class. * @@ -432,4 +431,4 @@ class Extension implements BaseExtension return $config; } -} \ No newline at end of file +} diff --git a/src/Behat/MinkExtension/Listener/FailureShowListener.php b/src/Behat/MinkExtension/Listener/FailureShowListener.php index 9daae53..22a456e 100644 --- a/src/Behat/MinkExtension/Listener/FailureShowListener.php +++ b/src/Behat/MinkExtension/Listener/FailureShowListener.php @@ -1,5 +1,13 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Behat\MinkExtension\Listener; use Symfony\Component\EventDispatcher\EventSubscriberInterface; @@ -9,14 +17,6 @@ use Behat\Behat\Event\StepEvent; use Behat\Mink\Mink; use Behat\Mink\Exception\Exception as MinkException; -/* - * This file is part of the Behat\MinkExtension. - * (c) Konstantin Kudryashov - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - /** * Failed step response show listener. * Listens to failed Behat steps and shows last response in a browser. @@ -80,7 +80,7 @@ class FailureShowListener implements EventSubscriberInterface if (StepEvent::FAILED !== $event->getResult()) { return; } - + if (!$event->getException() instanceof MinkException) { return; } diff --git a/src/Behat/MinkExtension/Listener/SessionsListener.php b/src/Behat/MinkExtension/Listener/SessionsListener.php index 6812934..00f863d 100644 --- a/src/Behat/MinkExtension/Listener/SessionsListener.php +++ b/src/Behat/MinkExtension/Listener/SessionsListener.php @@ -1,5 +1,13 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Behat\MinkExtension\Listener; use Symfony\Component\EventDispatcher\EventSubscriberInterface; @@ -9,14 +17,6 @@ use Behat\Behat\Event\ScenarioEvent, use Behat\Mink\Mink; -/* - * This file is part of the Behat\MinkExtension. - * (c) Konstantin Kudryashov - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - /** * Mink sessions listener. * Listens Behat events and configures/stops Mink sessions.