Contao\CoreBundle\Test\Composer\ScriptHandlerTest::testGetVerbosityFlag PHP Method

testGetVerbosityFlag() public method

Tests the getVerbosityFlag() method.
    public function testGetVerbosityFlag()
    {
        $method = new \ReflectionMethod($this->handler, 'getVerbosityFlag');
        $method->setAccessible(true);
        $this->assertEquals('', $method->invokeArgs($this->handler, [$this->getComposerEvent()]));
        $this->assertEquals(' -v', $method->invokeArgs($this->handler, [$this->getComposerEvent([], 'isVerbose')]));
        $this->assertEquals(' -vv', $method->invokeArgs($this->handler, [$this->getComposerEvent([], 'isVeryVerbose')]));
        $this->assertEquals(' -vvv', $method->invokeArgs($this->handler, [$this->getComposerEvent([], 'isDebug')]));
    }