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

mockIO() private method

Mocks the IO object.
private mockIO ( string | null $method = null ) : Composer\IO\IOInterface | PHPUnit_Framework_MockObject_MockObject
$method string | null
return Composer\IO\IOInterface | PHPUnit_Framework_MockObject_MockObject
    private function mockIO($method = null)
    {
        $io = $this->getMock('Composer\\IO\\IOInterface');
        if (null !== $method) {
            $io->expects($this->any())->method($method)->willReturn(true);
        }
        return $io;
    }