/tests/Aura/Cli/MockCommandWrong.php

https://bitbucket.org/harikt/aura.cli · PHP · 14 lines · 14 code · 0 blank · 0 comment · 0 complexity · 5ece14e394918e65c309f426bfb54368 MD5 · raw file

  1. <?php
  2. namespace Aura\Cli;
  3. use Aura\Cli\Stdio as Stdio;
  4. use Aura\Cli\Getopt as Getopt;
  5. class MockCommandWrong extends MockCommand
  6. {
  7. public function __construct(
  8. Stdio $stdio,
  9. Getopt $getopt
  10. ) {
  11. parent::__construct($stdio, $getopt);
  12. throw new \UnexpectedValueException('Child of RuntimeException');
  13. }
  14. }