From 523c4306247082ad08ec031b8f14978edb5ff128 Mon Sep 17 00:00:00 2001 From: Sanpi Date: Mon, 10 Oct 2016 11:36:32 +0200 Subject: [PATCH] Remove the phar package --- .travis.yml | 4 ---- bin/main | 19 ------------------- bin/stub.php | 7 ------- box.json | 8 -------- composer.json | 1 - doc/index.rst | 33 ++------------------------------- 6 files changed, 2 insertions(+), 70 deletions(-) delete mode 100644 bin/main delete mode 100644 bin/stub.php delete mode 100644 box.json diff --git a/.travis.yml b/.travis.yml index 8fcf7ef2..3cd8a19b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,7 +37,3 @@ before_script: script: - ./bin/atoum - ./bin/behat -fprogress --tags='~@user' - - - ./bin/box build - - sed -i 's/Sanpi\\Behatch\\Extension/behatch_contexts.phar/' behat.yml - - ./bin/behat -fprogress --tags='~@user' diff --git a/bin/main b/bin/main deleted file mode 100644 index 95e8f24a..00000000 --- a/bin/main +++ /dev/null @@ -1,19 +0,0 @@ - -* -* This source file is subject to the MIT license that is bundled -* with this source code in the file LICENSE. -*/ - -spl_autoload_register(function ($class) { - if (false !== strpos($class, 'Sanpi\\Behatch')) { - require_once __DIR__ . '/../src/' . str_replace(['Sanpi\\Behatch\\', '\\'], ['', '/'], $class) . '.php'; - return true; - } -}, true, false); - -return new Sanpi\Behatch\Extension; diff --git a/bin/stub.php b/bin/stub.php deleted file mode 100644 index 58395585..00000000 --- a/bin/stub.php +++ /dev/null @@ -1,7 +0,0 @@ -`_ - Behat itself -* `mink.phar `_ - Mink framework -* `mink_extension.phar `_ - Mink integration extension -* `behatch_contexts.phar `_ - Behatch contexts - -And activate it in your in your ``behat.yml``: - -.. code-block:: yaml - - # behat.yml - default: - # ... - extensions: - behatch_contexts.phar: ~ - -Through Composer -~~~~~~~~~~~~~~~~ - -The easiest way to keep your suite updated is to use -`Composer `_. - -You can add Behatch contexts as dependencies for your project or rapidly -bootstrap a Behatch projects. - Project dependency -****************** +~~~~~~~~~~~~~~~~~~ 1. `Install Composer `_ @@ -79,7 +50,7 @@ Project dependency Behatch\Extension: ~ Project bootstraping -******************** +~~~~~~~~~~~~~~~~~~~~ 1. Download the Behatch skeleton with composer: