4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Console\Tests\Helper;
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\Console\Input\StreamableInputInterface;
17 abstract class AbstractQuestionHelperTest extends TestCase
19 protected function createStreamableInputInterfaceMock($stream = null, $interactive = true)
21 $mock = $this->getMockBuilder(StreamableInputInterface::class)->getMock();
22 $mock->expects($this->any())
23 ->method('isInteractive')
24 ->will($this->returnValue($interactive));
27 $mock->expects($this->any())
29 ->willReturn($stream);