Skip to content

Commit

Permalink
Merge pull request #17 from creative-commoners/pulls/2.0/behat-guard
Browse files Browse the repository at this point in the history
Guard creation of behat context class
  • Loading branch information
ScopeyNZ committed Nov 6, 2018
2 parents 362b245 + 9b6c44f commit bb10af6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions phpcs.xml.dist
Expand Up @@ -7,5 +7,6 @@
<!-- Current exclusions -->
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps" />
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps" />
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols" />
</rule>
</ruleset>
4 changes: 4 additions & 0 deletions tests/Behat/Context/FeatureContext.php
Expand Up @@ -4,6 +4,10 @@
use Behat\Mink\Element\NodeElement;
use DNADesign\Elemental\Tests\Behat\Context\FeatureContext as BaseFeatureContext;

if (!class_exists(BaseFeatureContext::class)) {
return;
}

class FeatureContext extends BaseFeatureContext
{
/**
Expand Down

0 comments on commit bb10af6

Please sign in to comment.