From 11497f34cf77f493da9dde164bfa2a619c488568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Haso=C5=88?= Date: Thu, 16 May 2013 13:13:23 +0200 Subject: [PATCH] [SecurityBundle] Added missing files for phpunit --- .../Tests/Functional/app/AppKernel.php | 5 +++ .../Bundle/SecurityBundle/composer.json | 10 +++++- .../Bundle/SecurityBundle/phpunit.xml.dist | 31 +++++++++++++++++++ 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 src/Symfony/Bundle/SecurityBundle/phpunit.xml.dist diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/AppKernel.php b/src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/AppKernel.php index dbe618feac..0979db4229 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/AppKernel.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/AppKernel.php @@ -27,6 +27,11 @@ while ($dir !== $lastDir) { break; } + if (file_exists($dir.'/vendor/autoload.php')) { + require_once $dir.'/vendor/autoload.php'; + break; + } + $dir = dirname($dir); } diff --git a/src/Symfony/Bundle/SecurityBundle/composer.json b/src/Symfony/Bundle/SecurityBundle/composer.json index 9321d948e2..776f590bc8 100644 --- a/src/Symfony/Bundle/SecurityBundle/composer.json +++ b/src/Symfony/Bundle/SecurityBundle/composer.json @@ -17,7 +17,15 @@ ], "require": { "php": ">=5.3.3", - "symfony/security": "~2.2" + "symfony/security": "~2.2", + "symfony/http-kernel": "~2.2" + }, + "require-dev": { + "symfony/framework-bundle": "~2.2", + "symfony/twig-bundle": "~2.2", + "symfony/form": "~2.1", + "symfony/validator": "~2.2", + "symfony/yaml": "~2.0" }, "autoload": { "psr-0": { "Symfony\\Bundle\\SecurityBundle\\": "" } diff --git a/src/Symfony/Bundle/SecurityBundle/phpunit.xml.dist b/src/Symfony/Bundle/SecurityBundle/phpunit.xml.dist new file mode 100644 index 0000000000..2cffc1e59e --- /dev/null +++ b/src/Symfony/Bundle/SecurityBundle/phpunit.xml.dist @@ -0,0 +1,31 @@ + + + + + + + ./Tests/ + + + + + + ./ + + ./Tests + ./Resources + ./vendor + + + +