class NullOutputTest in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/console/Tests/Output/NullOutputTest.php \Symfony\Component\Console\Tests\Output\NullOutputTest
Hierarchy
- class \Symfony\Component\Console\Tests\Output\NullOutputTest extends \Symfony\Component\Console\Tests\Output\PHPUnit_Framework_TestCase
Expanded class hierarchy of NullOutputTest
File
- vendor/
symfony/ console/ Tests/ Output/ NullOutputTest.php, line 17
Namespace
Symfony\Component\Console\Tests\OutputView source
class NullOutputTest extends \PHPUnit_Framework_TestCase {
public function testConstructor() {
$output = new NullOutput();
ob_start();
$output
->write('foo');
$buffer = ob_get_clean();
$this
->assertSame('', $buffer, '->write() does nothing (at least nothing is printed)');
$this
->assertFalse($output
->isDecorated(), '->isDecorated() returns false');
}
public function testVerbosity() {
$output = new NullOutput();
$this
->assertSame(OutputInterface::VERBOSITY_QUIET, $output
->getVerbosity(), '->getVerbosity() returns VERBOSITY_QUIET for NullOutput by default');
$output
->setVerbosity(OutputInterface::VERBOSITY_VERBOSE);
$this
->assertSame(OutputInterface::VERBOSITY_QUIET, $output
->getVerbosity(), '->getVerbosity() always returns VERBOSITY_QUIET for NullOutput');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NullOutputTest:: |
public | function | ||
NullOutputTest:: |
public | function |