isInteractive() public static method

Returns if the file descriptor is an interactive terminal or not.
public static isInteractive ( integer | resource $fileDescriptor = self::STDOUT ) : boolean
$fileDescriptor integer | resource
return boolean
Ejemplo n.º 1
0
 /**
  * @covers \JBZoo\Utils\Cli::isInteractive
  */
 public function testCanDetectIfFileDescriptorIsInteractive()
 {
     $this->assertInternalType('boolean', Cli::isInteractive(STDOUT));
 }