DumperTest.php 841 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*
  3. * This file is part of the symfony package.
  4. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. namespace Symfony\Tests\Components\DependencyInjection\Dumper;
  10. use Symfony\Components\DependencyInjection\Builder;
  11. use Symfony\Components\DependencyInjection\Dumper\Dumper;
  12. class DumperTest extends \PHPUnit_Framework_TestCase
  13. {
  14. public function testDump()
  15. {
  16. $builder = new Builder();
  17. $dumper = new ProjectDumper($builder);
  18. try
  19. {
  20. $dumper->dump();
  21. $this->fail('->dump() returns a LogicException if the dump() method has not been overriden by a children class');
  22. }
  23. catch (\LogicException $e)
  24. {
  25. }
  26. }
  27. }
  28. class ProjectDumper extends Dumper
  29. {
  30. }