Skip to content

Commit

Permalink
add config phpunit test
Browse files Browse the repository at this point in the history
  • Loading branch information
metaer committed Mar 10, 2019
1 parent 1ee27aa commit ca5c411
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Tests/ConfigurationTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* Created by Pavel Popov
*/

namespace Metaer\CurlWrapperBundle\Tests;


use Metaer\CurlWrapperBundle\DependencyInjection\Configuration;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Config\Definition\Processor;

class ConfigurationTest extends TestCase
{
public function testConfiguration() {
$config = [];

$processor = new Processor();
$configuration = new Configuration();
$config = $processor->processConfiguration($configuration, [$config]);

$this->assertArrayHasKey('wrapper', $config);
$this->assertEquals('metaer_curl_wrapper.curl_wrapper.default', $config['wrapper']);
}
}

0 comments on commit ca5c411

Please sign in to comment.