From 4c2aab39ba6f2edf7d6312e5dd5e2ddc49d0ca71 Mon Sep 17 00:00:00 2001 From: Kamil Kokot Date: Wed, 1 Aug 2018 15:32:42 +0200 Subject: [PATCH 1/2] Update LICENSE and README --- LICENSE | 2 +- README.md | 51 ++++++++++++++++++++++++++------------------------- 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/LICENSE b/LICENSE index d538248..2dbb8e6 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2016-2017 Kamil Kokot +Copyright (c) 2016-2018 Kamil Kokot Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 0e705e6..2c829d7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ -# Symfony Extension [![License](https://img.shields.io/packagist/l/friends-of-behat/symfony-extension.svg)](https://packagist.org/packages/friends-of-behat/symfony-extension) [![Version](https://img.shields.io/packagist/v/friends-of-behat/symfony-extension.svg)](https://packagist.org/packages/friends-of-behat/symfony-extension) [![Build status on Linux](https://img.shields.io/travis/FriendsOfBehat/SymfonyExtension/master.svg)](http://travis-ci.org/FriendsOfBehat/SymfonyExtension) [![Scrutinizer Quality Score](https://img.shields.io/scrutinizer/g/FriendsOfBehat/SymfonyExtension.svg)](https://scrutinizer-ci.com/g/FriendsOfBehat/SymfonyExtension/) +# Symfony Extension -Integrates Behat with Symfony (both 2 and 3). +Integrates Behat with Symfony (`^3.4` and `^4.1`). + Inspired by [Behat/Symfony2Extension](https://github.com/Behat/Symfony2Extension). ## Differences @@ -27,29 +28,29 @@ ensures that application behaviour will not be affected by stateful services. FriendsOfBehat\SymfonyExtension: ~ ``` -**Symfony 3 configuration** + **Symfony 3 configuration** -``` -FriendsOfBehat\SymfonyExtension: - kernel: - bootstrap: 'var/bootstrap.php.cache' - path: app/AppKernel.php - class: 'AppKernel' - env: test - debug: true -``` - -**Symfony 4 configuration** - -``` -FriendsOfBehat\SymfonyExtension: - env_file: .env - kernel: - class: 'MyTrip\Kernel' - path: src/Kernel.php - debug: true -``` - -Symfony 4 does not have bootstrap file anymore and the environment is configured in the .env file. + ``` + FriendsOfBehat\SymfonyExtension: + kernel: + bootstrap: 'var/bootstrap.php.cache' + path: app/AppKernel.php + class: 'AppKernel' + env: test + debug: true + ``` + + **Symfony 4 configuration** + + ``` + FriendsOfBehat\SymfonyExtension: + env_file: .env + kernel: + class: 'MyTrip\Kernel' + path: src/Kernel.php + debug: true + ``` + + Symfony 4 does not have bootstrap file anymore and the environment is configured in the .env file. 3. Good luck & have fun! From 6af6e49ec504c7808852c54a9104a318ea90c8b9 Mon Sep 17 00:00:00 2001 From: Kamil Kokot Date: Wed, 1 Aug 2018 15:32:53 +0200 Subject: [PATCH 2/2] Remove license comments from PHP files --- src/Driver/Factory/SymfonyDriverFactory.php | 9 --------- src/Driver/SymfonyDriver.php | 9 --------- src/Listener/KernelRebooter.php | 9 --------- src/ServiceContainer/SymfonyExtension.php | 9 --------- 4 files changed, 36 deletions(-) diff --git a/src/Driver/Factory/SymfonyDriverFactory.php b/src/Driver/Factory/SymfonyDriverFactory.php index 83cc825..409add4 100644 --- a/src/Driver/Factory/SymfonyDriverFactory.php +++ b/src/Driver/Factory/SymfonyDriverFactory.php @@ -2,15 +2,6 @@ declare(strict_types=1); -/* - * This file is part of the SymfonyExtension package. - * - * (c) Kamil Kokot - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace FriendsOfBehat\SymfonyExtension\Driver\Factory; use Behat\MinkExtension\ServiceContainer\Driver\DriverFactory; diff --git a/src/Driver/SymfonyDriver.php b/src/Driver/SymfonyDriver.php index c772a9a..6556902 100644 --- a/src/Driver/SymfonyDriver.php +++ b/src/Driver/SymfonyDriver.php @@ -2,15 +2,6 @@ declare(strict_types=1); -/* - * This file is part of the SymfonyExtension package. - * - * (c) Kamil Kokot - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace FriendsOfBehat\SymfonyExtension\Driver; use Behat\Mink\Driver\BrowserKitDriver; diff --git a/src/Listener/KernelRebooter.php b/src/Listener/KernelRebooter.php index d68825f..4cc7036 100644 --- a/src/Listener/KernelRebooter.php +++ b/src/Listener/KernelRebooter.php @@ -2,15 +2,6 @@ declare(strict_types=1); -/* - * This file is part of the SymfonyExtension package. - * - * (c) Kamil Kokot - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace FriendsOfBehat\SymfonyExtension\Listener; use Behat\Behat\EventDispatcher\Event\ExampleTested; diff --git a/src/ServiceContainer/SymfonyExtension.php b/src/ServiceContainer/SymfonyExtension.php index 91fa5ac..2e27fbd 100644 --- a/src/ServiceContainer/SymfonyExtension.php +++ b/src/ServiceContainer/SymfonyExtension.php @@ -2,15 +2,6 @@ declare(strict_types=1); -/* - * This file is part of the SymfonyExtension package. - * - * (c) Kamil Kokot - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - namespace FriendsOfBehat\SymfonyExtension\ServiceContainer; use Behat\MinkExtension\ServiceContainer\MinkExtension;