8000 merged branch blahy/code-coverage-fix (PR #3617) · symfony/symfony@edac48a · GitHub
[go: up one dir, main page]

Skip to content

Commit edac48a

Browse files
committed
merged branch blahy/code-coverage-fix (PR #3617)
Commits ------- 9ed7c03 fixed code coverage raport generation Discussion ---------- fixed code coverage raport generation Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: no (tests were already broken) Fixes the following tickets: - Todo: - I wanted to run the test coverage for Symfony2.1. I installed vendors using composer but code coverage script failed (running unit tests failed too). After installing vendors using vendors.php I got errors about missing classes: `Class 'Doctrine\Common\DataFixtures\Loader' not found` and later: `Class 'Monolog\Handler\ChromePHPHandler' not found.` The changes made it possible to run the code coverage script. Monolog was already present in autoload.php.dist but was not present in vendors.php script, doctrine fixtures were not included in both.
2 parents 645d09c + 9ed7c03 commit edac48a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

autoload.php.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ $loader = new UniversalClassLoader();
99
$loader->registerNamespaces(array(
1010
'Symfony\\Tests' => __DIR__.'/tests',
1111
'Symfony' => __DIR__.'/src',
12+
'Doctrine\\Common\\DataFixtures' => __DIR__.'/vendor/doctrine-fixtures/lib',
1213
'Doctrine\\Common' => __DIR__.'/vendor/doctrine-common/lib',
1314
'Doctrine\\DBAL' => __DIR__.'/vendor/doctrine-dbal/lib',
1415
'Doctrine' => __DIR__.'/vendor/doctrine/lib',

vendors.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@
3434
$deps = array(
3535
array('doctrine', 'http://github.com/doctrine/doctrine2.git', 'origin/master'),
3636
array('doctrine-dbal', 'http://github.com/doctrine/dbal.git', 'origin/master'),
37+
array('doctrine-fixtures', 'https://github.com/doctrine/data-fixtures.git', 'origin/master'),
3738
array('doctrine-common', 'http://github.com/doctrine/common.git', 'origin/master'),
3839
array('twig', 'http://github.com/fabpot/Twig.git', 'origin/master'),
3940
array('propel', 'http://github.com/propelorm/Propel.git', 'origin/master'),
41+
array('monolog', 'https://github.com/Seldaek/monolog.git', 'origin/master'),
4042
);
4143

4244
foreach ($deps as $dep) {

0 commit comments

Comments
 (0)
0