DumperTest.php 828 B

1234567891011121314151617181920212223242526272829303132
  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. require_once __DIR__.'/../../../../bootstrap.php';
  10. use Symfony\Components\DependencyInjection\Builder;
  11. use Symfony\Components\DependencyInjection\Dumper\Dumper;
  12. $t = new LimeTest(1);
  13. class ProjectDumper extends Dumper
  14. {
  15. }
  16. $builder = new Builder();
  17. $dumper = new ProjectDumper($builder);
  18. try
  19. {
  20. $dumper->dump();
  21. $t->fail('->dump() returns a LogicException if the dump() method has not been overriden by a children class');
  22. }
  23. catch (LogicException $e)
  24. {
  25. $t->pass('->dump() returns a LogicException if the dump() method has not been overriden by a children class');
  26. }