updated packages

This commit is contained in:
2019-05-18 09:06:43 +00:00
parent 901d16349e
commit e9487fa58a
2025 changed files with 30366 additions and 49653 deletions

View File

@@ -36,7 +36,7 @@ class ConsoleSectionOutputTest extends TestCase
public function testClearAll()
{
$sections = array();
$sections = [];
$output = new ConsoleSectionOutput($this->stream, $sections, OutputInterface::VERBOSITY_NORMAL, true, new OutputFormatter());
$output->writeln('Foo'.PHP_EOL.'Bar');
@@ -48,7 +48,7 @@ class ConsoleSectionOutputTest extends TestCase
public function testClearNumberOfLines()
{
$sections = array();
$sections = [];
$output = new ConsoleSectionOutput($this->stream, $sections, OutputInterface::VERBOSITY_NORMAL, true, new OutputFormatter());
$output->writeln("Foo\nBar\nBaz\nFooBar");
@@ -61,7 +61,7 @@ class ConsoleSectionOutputTest extends TestCase
public function testClearNumberOfLinesWithMultipleSections()
{
$output = new StreamOutput($this->stream);
$sections = array();
$sections = [];
$output1 = new ConsoleSectionOutput($output->getStream(), $sections, OutputInterface::VERBOSITY_NORMAL, true, new OutputFormatter());
$output2 = new ConsoleSectionOutput($output->getStream(), $sections, OutputInterface::VERBOSITY_NORMAL, true, new OutputFormatter());
@@ -78,7 +78,7 @@ class ConsoleSectionOutputTest extends TestCase
public function testClearPreservingEmptyLines()
{
$output = new StreamOutput($this->stream);
$sections = array();
$sections = [];
$output1 = new ConsoleSectionOutput($output->getStream(), $sections, OutputInterface::VERBOSITY_NORMAL, true, new OutputFormatter());
$output2 = new ConsoleSectionOutput($output->getStream(), $sections, OutputInterface::VERBOSITY_NORMAL, true, new OutputFormatter());
@@ -93,7 +93,7 @@ class ConsoleSectionOutputTest extends TestCase
public function testOverwrite()
{
$sections = array();
$sections = [];
$output = new ConsoleSectionOutput($this->stream, $sections, OutputInterface::VERBOSITY_NORMAL, true, new OutputFormatter());
$output->writeln('Foo');
@@ -105,7 +105,7 @@ class ConsoleSectionOutputTest extends TestCase
public function testOverwriteMultipleLines()
{
$sections = array();
$sections = [];
$output = new ConsoleSectionOutput($this->stream, $sections, OutputInterface::VERBOSITY_NORMAL, true, new OutputFormatter());
$output->writeln('Foo'.PHP_EOL.'Bar'.PHP_EOL.'Baz');
@@ -117,7 +117,7 @@ class ConsoleSectionOutputTest extends TestCase
public function testAddingMultipleSections()
{
$sections = array();
$sections = [];
$output1 = new ConsoleSectionOutput($this->stream, $sections, OutputInterface::VERBOSITY_NORMAL, true, new OutputFormatter());
$output2 = new ConsoleSectionOutput($this->stream, $sections, OutputInterface::VERBOSITY_NORMAL, true, new OutputFormatter());
@@ -127,7 +127,7 @@ class ConsoleSectionOutputTest extends TestCase
public function testMultipleSectionsOutput()
{
$output = new StreamOutput($this->stream);
$sections = array();
$sections = [];
$output1 = new ConsoleSectionOutput($output->getStream(), $sections, OutputInterface::VERBOSITY_NORMAL, true, new OutputFormatter());
$output2 = new ConsoleSectionOutput($output->getStream(), $sections, OutputInterface::VERBOSITY_NORMAL, true, new OutputFormatter());
@@ -151,7 +151,7 @@ class ConsoleSectionOutputTest extends TestCase
$input->expects($this->once())->method('isInteractive')->willReturn(true);
$input->expects($this->once())->method('getStream')->willReturn($inputStream);
$sections = array();
$sections = [];
$output = new ConsoleSectionOutput($this->stream, $sections, OutputInterface::VERBOSITY_NORMAL, true, new OutputFormatter());
(new QuestionHelper())->ask($input, $output, new Question('What\'s your favorite super hero?'));

View File

@@ -77,7 +77,7 @@ class OutputTest extends TestCase
public function testWriteAnArrayOfMessages()
{
$output = new TestOutput();
$output->writeln(array('foo', 'bar'));
$output->writeln(['foo', 'bar']);
$this->assertEquals("foo\nbar\n", $output->output, '->writeln() can take an array of messages to output');
}
@@ -106,10 +106,10 @@ class OutputTest extends TestCase
public function provideWriteArguments()
{
return array(
array('<info>foo</info>', Output::OUTPUT_RAW, "<info>foo</info>\n"),
array('<info>foo</info>', Output::OUTPUT_PLAIN, "foo\n"),
);
return [
['<info>foo</info>', Output::OUTPUT_RAW, "<info>foo</info>\n"],
['<info>foo</info>', Output::OUTPUT_PLAIN, "foo\n"],
];
}
public function testWriteWithDecorationTurnedOff()
@@ -122,7 +122,7 @@ class OutputTest extends TestCase
public function testWriteDecoratedMessage()
{
$fooStyle = new OutputFormatterStyle('yellow', 'red', array('blink'));
$fooStyle = new OutputFormatterStyle('yellow', 'red', ['blink']);
$output = new TestOutput();
$output->getFormatter()->setStyle('FOO', $fooStyle);
$output->setDecorated(true);
@@ -163,13 +163,13 @@ class OutputTest extends TestCase
public function verbosityProvider()
{
return array(
array(Output::VERBOSITY_QUIET, '2', '->write() in QUIET mode only outputs when an explicit QUIET verbosity is passed'),
array(Output::VERBOSITY_NORMAL, '123', '->write() in NORMAL mode outputs anything below an explicit VERBOSE verbosity'),
array(Output::VERBOSITY_VERBOSE, '1234', '->write() in VERBOSE mode outputs anything below an explicit VERY_VERBOSE verbosity'),
array(Output::VERBOSITY_VERY_VERBOSE, '12345', '->write() in VERY_VERBOSE mode outputs anything below an explicit DEBUG verbosity'),
array(Output::VERBOSITY_DEBUG, '123456', '->write() in DEBUG mode outputs everything'),
);
return [
[Output::VERBOSITY_QUIET, '2', '->write() in QUIET mode only outputs when an explicit QUIET verbosity is passed'],
[Output::VERBOSITY_NORMAL, '123', '->write() in NORMAL mode outputs anything below an explicit VERBOSE verbosity'],
[Output::VERBOSITY_VERBOSE, '1234', '->write() in VERBOSE mode outputs anything below an explicit VERY_VERBOSE verbosity'],
[Output::VERBOSITY_VERY_VERBOSE, '12345', '->write() in VERY_VERBOSE mode outputs anything below an explicit DEBUG verbosity'],
[Output::VERBOSITY_DEBUG, '123456', '->write() in DEBUG mode outputs everything'],
];
}
}