Skip to content

Commit

Permalink
Import all functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Jan 10, 2021
1 parent 2786e99 commit 67d1792
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ return PhpCsFixer\Config::create()
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'fopen_flags' => ['b_mode' => true],
'native_function_invocation' => false,
'native_function_invocation' => true,
'global_namespace_import' => ['import_classes' => true, 'import_constants' => true, 'import_functions' => true],
'phpdoc_separation' => false,
'yoda_style' => false,
Expand Down
3 changes: 3 additions & 0 deletions src/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace DVDoug\Behat\CodeCoverage;

use function array_walk;
use Behat\Testwork\ServiceContainer\Extension as ExtensionInterface;
use Behat\Testwork\ServiceContainer\ExtensionManager;
use DVDoug\Behat\CodeCoverage\Subscriber\EventSubscriber;
Expand All @@ -22,13 +23,15 @@
use SebastianBergmann\CodeCoverage\Filter;
use SebastianBergmann\CodeCoverage\NoCodeCoverageDriverAvailableException;
use SebastianBergmann\CodeCoverage\NoCodeCoverageDriverWithPathCoverageSupportAvailableException;
use function sprintf;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\DependencyInjection\Reference;
use function sys_get_temp_dir;

/**
* Code coverage extension.
Expand Down
1 change: 1 addition & 0 deletions tests/EventSubscriberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace DVDoug\Behat\CodeCoverage\Test;

use function array_keys;
use Behat\Behat\EventDispatcher\Event\ScenarioTested;
use Behat\Gherkin\Node\FeatureNode;
use Behat\Gherkin\Node\ScenarioNode;
Expand Down
2 changes: 2 additions & 0 deletions tests/ExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Behat\Testwork\ServiceContainer\Configuration\ConfigurationTree;
use Behat\Testwork\ServiceContainer\ContainerLoader;
use Behat\Testwork\ServiceContainer\ExtensionManager;
use function dirname;
use DVDoug\Behat\CodeCoverage\Extension;
use DVDoug\Behat\CodeCoverage\Service\ReportService;
use DVDoug\Behat\CodeCoverage\Subscriber\EventSubscriber;
Expand All @@ -22,6 +23,7 @@
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use function sys_get_temp_dir;

class ExtensionTest extends TestCase
{
Expand Down
4 changes: 4 additions & 0 deletions tests/ReportServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@
namespace DVDoug\Behat\CodeCoverage\Test;

use DVDoug\Behat\CodeCoverage\Service\ReportService;
use function file_get_contents;
use function ob_get_clean;
use function ob_start;
use PHPUnit\Framework\TestCase;
use SebastianBergmann\CodeCoverage\CodeCoverage;
use SebastianBergmann\CodeCoverage\Driver\Driver;
use SebastianBergmann\CodeCoverage\Filter;
use Symfony\Component\Filesystem\Filesystem;
use function sys_get_temp_dir;

class ReportServiceTest extends TestCase
{
Expand Down

0 comments on commit 67d1792

Please sign in to comment.