-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from kmfk/fix-composer
Bundle Update
- Loading branch information
Showing
12 changed files
with
122 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
composer.lock | ||
coverage/ | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
language: php | ||
|
||
php: | ||
- 5.3 | ||
|
||
env: | ||
- SYMFONY_VERSION=2.3.* | ||
- SYMFONY_VERSION=2.4.* | ||
- SYMFONY_VERSION=2.5.* | ||
|
||
before_script: | ||
- composer self-update | ||
- composer require symfony/framework-bundle:${SYMFONY_VERSION} --no-update | ||
- composer install --dev --prefer-source | ||
|
||
script: phpunit --coverage-text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,25 +8,25 @@ | |
"authors": [ | ||
{ | ||
"name": "Keith Kirk", | ||
"email": "[email protected]", | ||
"email": "[email protected]", | ||
"role": "developer", | ||
"homepage": "https://github.com/kmfk" | ||
"homepage": "http://kmfk.io" | ||
} | ||
], | ||
"support": { | ||
"email": "[email protected]" | ||
"email": "[email protected]" | ||
}, | ||
"require": { | ||
"php": ">=5.3.0", | ||
"keen-io/keen-io": "~2.1" | ||
"php": ">=5.3.0", | ||
"keen-io/keen-io": "~2.1", | ||
"symfony/framework-bundle": "~2.3" | ||
}, | ||
"require-dev": { | ||
"symfony/symfony": "dev-master" | ||
"phpunit/phpunit": "~3.7" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"KeenIO\\Bundle\\KeenIOBundle": "" | ||
"psr-4": { | ||
"KeenIO\\Bundle\\KeenIOBundle\\": "src/" | ||
} | ||
}, | ||
"target-dir": "KeenIO/Bundle/KeenIOBundle" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" | ||
backupStaticAttributes="false" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
syntaxCheck="false" | ||
bootstrap="tests/bootstrap.php" | ||
> | ||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">src/</directory> | ||
</whitelist> | ||
</filter> | ||
|
||
<php> | ||
</php> | ||
<testsuites> | ||
<testsuite name="KeenIOBundle Test Suite"> | ||
<directory>./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
<logging> | ||
<log type="coverage-text" target="php://stdout" /> | ||
<log type="coverage-html" target="coverage/" /> | ||
</logging> | ||
</phpunit> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
namespace KeenIO\Bundle\KeenIOBundle\Tests\DependencyInjection; | ||
|
||
use KeenIO\Bundle\KeenIOBundle\DependencyInjection\KeenIOExtension; | ||
use Symfony\Component\Config\FileLocator; | ||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; | ||
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag; | ||
|
||
class KeenIOExtensionTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
/** | ||
* QPush Extension | ||
* | ||
* @var KeenIOExtension | ||
*/ | ||
private $extension; | ||
|
||
/** | ||
* Container | ||
* | ||
* @var ContainerBuilder | ||
*/ | ||
private $container; | ||
|
||
public function setUp() | ||
{ | ||
$this->extension = new KeenIOExtension(); | ||
$this->container = new ContainerBuilder(); | ||
|
||
$this->container->registerExtension($this->extension); | ||
} | ||
|
||
public function testConfiguration() | ||
{ | ||
$loader = new YamlFileLoader($this->container, new FileLocator(__DIR__.'/../Fixtures/')); | ||
$loader->load('config_test.yml'); | ||
|
||
$this->container->compile(); | ||
|
||
$this->assertTrue($this->container->has('keen_io')); | ||
} | ||
} |
0
Resources/config/config.yml → tests/Fixtures/config_test.yml
100755 → 100644
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
error_reporting(-1); | ||
|
||
if (!file_exists(dirname(__DIR__) . '/composer.lock')) { | ||
die("Dependencies must be installed using composer:\n\nphp composer.phar install\n\n" | ||
."See http://getcomposer.org for help with installing composer\n"); | ||
} | ||
|
||
$loader = require dirname(__DIR__) . '/vendor/autoload.php'; | ||
$loader->addPsr4('KeenIO\\Bundle\\KeenIOBundle\\Tests\\', __DIR__); |