Skip to content

Commit 40ed0d2

Browse files
committed
[SecurityBundle] Added missing files for phpunit
1 parent a09d4fe commit 40ed0d2

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

Tests/Functional/app/AppKernel.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
break;
2828
}
2929

30+
if (file_exists($dir.'/vendor/autoload.php')) {
31+
require_once $dir.'/vendor/autoload.php';
32+
break;
33+
}
34+
3035
$dir = dirname($dir);
3136
}
3237

composer.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,15 @@
1717
],
1818
"require": {
1919
"php": ">=5.3.3",
20-
"symfony/security": "~2.2"
20+
"symfony/security": "~2.2",
21+
"symfony/http-kernel": "~2.2"
22+
},
23+
"require-dev": {
24+
"symfony/framework-bundle": "~2.2",
25+
"symfony/twig-bundle": "~2.2",
26+
"symfony/form": "~2.1",
27+
"symfony/validator": "~2.2",
28+
"symfony/yaml": "~2.0"
2129
},
2230
"autoload": {
2331
"psr-0": { "Symfony\\Bundle\\SecurityBundle\\": "" }

phpunit.xml.dist

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<phpunit backupGlobals="false"
4+
backupStaticAttributes="false"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnFailure="false"
11+
syntaxCheck="false"
12+
bootstrap="vendor/autoload.php"
13+
>
14+
15+
<testsuites>
16+
<testsuite name="Symfony SecurityBundle Test Suite">
17+
<directory>./Tests/</directory>
18+
</testsuite>
19+
</testsuites>
20+
21+
<filter>
22+
<whitelist>
23+
<directory>./</directory>
24+
<exclude>
25+
<directory>./Tests</directory>
26+
<directory>./Resources</directory>
27+
<directory>./vendor</directory>
28+
</exclude>
29+
</whitelist>
30+
</filter>
31+
</phpunit>

0 commit comments

Comments
 (0)