You are here

public function InputTest::testSetGetInteractive in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Tests/Input/InputTest.php \Symfony\Component\Console\Tests\Input\InputTest::testSetGetInteractive()

File

vendor/symfony/console/Tests/Input/InputTest.php, line 114

Class

InputTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testSetGetInteractive() {
  $input = new ArrayInput(array());
  $this
    ->assertTrue($input
    ->isInteractive(), '->isInteractive() returns whether the input should be interactive or not');
  $input
    ->setInteractive(false);
  $this
    ->assertFalse($input
    ->isInteractive(), '->setInteractive() changes the interactive flag');
}