Browse files

[WebProfilerBundle] fixed composer.json and added missing PHPUnit con…

…figuration
  • Loading branch information...
1 parent e553e65 commit 6eba7abb2cd3d4026164f7c1852a1f87eb60e643 @fabpot fabpot committed Dec 12, 2012
View
4 src/Symfony/Bundle/WebProfilerBundle/.gitignore
@@ -0,0 +1,4 @@
+vendor/
+composer.lock
+phpunit.xml
+
View
9 src/Symfony/Bundle/WebProfilerBundle/composer.json
@@ -17,7 +17,14 @@
],
"require": {
"php": ">=5.3.3",
- "symfony/twig-bundle": "2.2.*"
+ "symfony/http-kernel": "2.2.*",
+ "symfony/routing": "2.2.*",
+ "symfony/twig-bridge": "2.2.*"
+ },
+ "require-dev": {
+ "symfony/config": "2.2.*",
+ "symfony/dependency-injection": "2.2.*",
+ "symfony/stopwatch": "2.2.*"
},
"autoload": {
"psr-0": { "Symfony\\Bundle\\WebProfilerBundle\\": "" }
View
30 src/Symfony/Bundle/WebProfilerBundle/phpunit.xml.dist
@@ -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="vendor/autoload.php"
+>
+
+ <testsuites>
+ <testsuite name="Symfony WebProfilerBundle Test Suite">
+ <directory>./Tests/</directory>
+ </testsuite>
+ </testsuites>
+
+ <filter>
+ <whitelist>
+ <directory>./</directory>
+ <exclude>
+ <directory>./Tests</directory>
+ <directory>./Resources</directory>
+ </exclude>
@stof
Symfony member
stof added a line comment Dec 12, 2012

you should also exclude vendor, otherwise the code coverage will include all vendors when doing it on the standalone repo

@fabpot
Symfony member
fabpot added a line comment Dec 13, 2012

Good catch. Fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ </whitelist>
+ </filter>
+</phpunit>

0 comments on commit 6eba7ab

Please sign in to comment.