TYPO3  7.6
ConsoleOutputTest.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11 
13 
16 
17 class ConsoleOutputTest extends \PHPUnit_Framework_TestCase
18 {
19  public function testConstructor()
20  {
21  $output = new ConsoleOutput(Output::VERBOSITY_QUIET, true);
22  $this->assertEquals(Output::VERBOSITY_QUIET, $output->getVerbosity(), '__construct() takes the verbosity as its first argument');
23  $this->assertSame($output->getFormatter(), $output->getErrorOutput()->getFormatter(), '__construct() takes a formatter or null as the third argument');
24  }
25 }