DumperTest.php 891 B

12345678910111213141516171819202122232425262728293031323334353637
  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. require_once __DIR__.'/../../../bootstrap.php';
  11. use Symfony\Components\DependencyInjection\Builder;
  12. use Symfony\Components\DependencyInjection\Dumper\Dumper;
  13. class DumperTest extends \PHPUnit_Framework_TestCase
  14. {
  15. public function testDump()
  16. {
  17. $builder = new Builder();
  18. $dumper = new ProjectDumper($builder);
  19. try
  20. {
  21. $dumper->dump();
  22. $this->fail('->dump() returns a LogicException if the dump() method has not been overriden by a children class');
  23. }
  24. catch (\LogicException $e)
  25. {
  26. }
  27. }
  28. }
  29. class ProjectDumper extends Dumper
  30. {
  31. }