FakeShell.php 594 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /*
  3. * This file is part of Psy Shell.
  4. *
  5. * (c) 2012-2023 Justin Hileman
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Psy\Test;
  11. use Psy\Configuration;
  12. use Psy\Shell;
  13. class FakeShell extends Shell
  14. {
  15. public $matchers;
  16. public function __construct(Configuration $config = null)
  17. {
  18. // Do something (silly) with $config for phpstan's sake.
  19. $config = null;
  20. }
  21. public function addMatchers(array $matchers)
  22. {
  23. $this->matchers = $matchers;
  24. }
  25. }