Skip to content

Commit

Permalink
Change directory structure and add basic phpunit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometee committed Mar 31, 2020
1 parent 4d09adc commit c9a87c6
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 40 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ before_script:

script:
- composer validate --strict
- vendor/bin/ecs check .
- vendor/bin/ecs check .
- vendor/bin/phpunit
34 changes: 0 additions & 34 deletions DependencyInjection/Configuration.php

This file was deleted.

7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
"php-http/guzzle6-adapter": "^2.0"
},
"autoload": {
"psr-4": {
"Prometee\\PayumStripeCheckoutSessionBundle\\": "."
}
"psr-4": { "Prometee\\PayumStripeCheckoutSessionBundle\\": "src/" }
},
"autoload-dev": {
"psr-4": { "Tests\\Prometee\\PayumStripeCheckoutSession\\": "tests/" }
},
"license": "MIT",
"extra": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class PrometeePayumStripeCheckoutSessionExtension extends Extension
*/
public function load(array $configs, ContainerBuilder $container)
{
$configs = $this->processConfiguration($this->getConfiguration([], $container), $configs);

$loader = new YamlFileLoader(
$container,
new FileLocator(dirname(__DIR__).'/Resources/config')
Expand Down
File renamed without changes.
17 changes: 17 additions & 0 deletions tests/PrometeePayumStripeCheckoutSessionBundleTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace Tests\Prometee\PayumStripeCheckoutSessionBundle;

use Prometee\PayumStripeCheckoutSessionBundle\PrometeePayumStripeCheckoutSessionBundle;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpKernel\Bundle\Bundle;

class PrometeePayumStripeCheckoutSessionBundleTest extends TestCase
{
public function test__construct()
{
$bundle = new PrometeePayumStripeCheckoutSessionBundle();

$this->assertInstanceOf(Bundle::class, $bundle);
}
}

0 comments on commit c9a87c6

Please sign in to comment.