/** * @dataProvider outputVerbosityDataProvider */ public function testIsVeryVerbose($verbosity_level) { $this->output->getVerbosity()->willReturn($verbosity_level)->shouldBeCalled(); $actual = $this->io->isVeryVerbose(); if ($verbosity_level >= OutputInterface::VERBOSITY_VERY_VERBOSE) { $this->assertTrue($actual, 'Output should be very verbose.'); } else { $this->assertFalse($actual, 'Output should not be very verbose.'); } }