FinderTest.php 739 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /*
  3. * This file is part of the PHP CS utility.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace Symfony\CS\Tests\Finder;
  11. use Symfony\CS\Finder;
  12. /**
  13. * @internal
  14. */
  15. final class FinderTest extends \PHPUnit_Framework_TestCase
  16. {
  17. /**
  18. * @expectedException \LogicException
  19. * @expectedExceptionMessageRegExp /^You must call (?:the in\(\) method)|(?:one of in\(\) or append\(\)) methods before iterating over a Finder\.$/
  20. */
  21. public function testThatDefaultFinderDoesNotSpecifyAnyDirectory()
  22. {
  23. $finder = Finder::create();
  24. $finder->getIterator();
  25. }
  26. }