Skip to content

Commit

Permalink
Merge pull request #134 from bamarni/composer-tests
Browse files Browse the repository at this point in the history
composified tests
  • Loading branch information
stof committed Aug 29, 2012
2 parents 4389efd + fef81bd commit dcbbf95
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 66 deletions.
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
/phpunit.xml
/Tests/autoload.php
/vendor/knp-menu
/vendor/symfony
composer.lock
vendor/*
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ language: php
php:
- 5.3
- 5.4
env:
- SYMFONY_VERSION=v2.0.10
- SYMFONY_VERSION=origin/2.0
- SYMFONY_VERSION=origin/master
before_script: php vendor/vendors.php

before_script:
- wget -nc http://getcomposer.org/composer.phar
- php composer.phar install --dev
2 changes: 1 addition & 1 deletion Tests/DependencyInjection/KnpMenuExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\DependencyInjection\Parameter;
use Symfony\Component\DependencyInjection\Reference;

class FOSAdvancedEncoderExtensionTest extends \PHPUnit_Framework_TestCase
class KnpMenuExtensionTest extends \PHPUnit_Framework_TestCase
{
public function testDefault()
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/Stubs/TestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct(array $bundles)
{
$this->mockBundles = $bundles;

parent::__construct('test', true);
parent::__construct('test', false);
}

public function registerBundles()
Expand Down
23 changes: 0 additions & 23 deletions Tests/autoload.php.dist

This file was deleted.

7 changes: 0 additions & 7 deletions Tests/bootstrap.php

This file was deleted.

3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
"autoload": {
"psr-0": { "Knp\\Bundle\\MenuBundle": "" }
},
"target-dir": "Knp/Bundle/MenuBundle"
"target-dir": "Knp/Bundle/MenuBundle",
"minimum-stability": "dev"
}
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit colors="false" bootstrap="Tests/bootstrap.php">
<phpunit colors="false" bootstrap="vendor/autoload.php">
<testsuites>
<testsuite name="KnpMenuBundle Test Suite">
<directory suffix="Test.php">./Tests/</directory>
Expand Down
23 changes: 0 additions & 23 deletions vendor/vendors.php

This file was deleted.

0 comments on commit dcbbf95

Please sign in to comment.