Skip to content

Commit

Permalink
Remove exceptions from phpunit whitelist (#1236)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 authored and greg0ire committed Mar 25, 2017
1 parent 868c18d commit 7387f51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Admin/GalleryHasMediaAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected function configureFormFields(FormMapper $formMapper)
}
}

// NEXT_MAJOR: Keep FQCN when bumping Symfony requirement to 2.8+.
// NEXT_MAJOR: Keep FQCN when bumping Symfony requirement to 2.8+
$modelListType = method_exists('Symfony\Component\Form\AbstractType', 'getBlockPrefix')
? 'Sonata\AdminBundle\Form\Type\ModelListType'
: 'sonata_type_model_list';
Expand Down
18 changes: 7 additions & 11 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,26 @@
bootstrap="Tests/tests/bootstrap.php"
>
<testsuites>
<testsuite name="MediaBundle Test Suite">
<directory>./Tests/</directory>
<testsuite name="SonataMediaBundle Test Suite">
<directory>./Tests</directory>
</testsuite>
</testsuites>


<filter>
<whitelist>
<directory>./</directory>
<exclude>
<directory>./Tests/</directory>
<directory>./DataFixtures/</directory>
<directory>./Resources/</directory>
<directory>./DependencyInjection/</directory>
<directory>./vendor/</directory>

<!-- ignore driver dependencies -->
<directory>./Admin/Manager</directory>
<directory>./**/ODM</directory>
<directory>./**/ORM</directory>
<directory>./**/PHPCR</directory>

<directory>./coverage/</directory>
</exclude>
</whitelist>
</filter>

<php>
<ini name="precision" value="8"/>
</php>

</phpunit>

0 comments on commit 7387f51

Please sign in to comment.