ConsoleOutputTest.php 649 B

123456789101112131415161718192021
  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\Console\Output\ConsoleOutput;
  11. use Symfony\Components\Console\Output\Output;
  12. $t = new LimeTest(1);
  13. // __construct()
  14. $t->diag('__construct()');
  15. $output = new ConsoleOutput(Output::VERBOSITY_QUIET, true);
  16. $t->is($output->getVerbosity(), Output::VERBOSITY_QUIET, '__construct() takes the verbosity as its first argument');