ConsoleOutputTest.php 760 B

12345678910111213141516171819202122232425
  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. namespace Symfony\Tests\Components\Console\Output;
  10. require_once __DIR__.'/../../../bootstrap.php';
  11. use Symfony\Components\Console\Output\ConsoleOutput;
  12. use Symfony\Components\Console\Output\Output;
  13. class ConsoleOutputTest extends \PHPUnit_Framework_TestCase
  14. {
  15. public function testConstructor()
  16. {
  17. $output = new ConsoleOutput(Output::VERBOSITY_QUIET, true);
  18. $this->assertEquals(Output::VERBOSITY_QUIET, $output->getVerbosity(), '__construct() takes the verbosity as its first argument');
  19. }
  20. }