composer update
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php declare(strict_types=1);
|
||||
/*
|
||||
* This file is part of sebastian/environment.
|
||||
*
|
||||
@@ -7,9 +7,6 @@
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace SebastianBergmann\Environment;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
@@ -24,7 +21,7 @@ final class ConsoleTest extends TestCase
|
||||
*/
|
||||
private $console;
|
||||
|
||||
protected function setUp()/*: void*/
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->console = new Console;
|
||||
}
|
||||
@@ -33,7 +30,7 @@ final class ConsoleTest extends TestCase
|
||||
* @todo Now that this component is PHP 7-only and uses return type declarations
|
||||
* this test makes even less sense than before
|
||||
*/
|
||||
public function testCanDetectIfStdoutIsInteractiveByDefault()/*: void*/
|
||||
public function testCanDetectIfStdoutIsInteractiveByDefault(): void
|
||||
{
|
||||
$this->assertInternalType('boolean', $this->console->isInteractive());
|
||||
}
|
||||
@@ -42,16 +39,16 @@ final class ConsoleTest extends TestCase
|
||||
* @todo Now that this component is PHP 7-only and uses return type declarations
|
||||
* this test makes even less sense than before
|
||||
*/
|
||||
public function testCanDetectIfFileDescriptorIsInteractive()/*: void*/
|
||||
public function testCanDetectIfFileDescriptorIsInteractive(): void
|
||||
{
|
||||
$this->assertInternalType('boolean', $this->console->isInteractive(STDOUT));
|
||||
$this->assertInternalType('boolean', $this->console->isInteractive(\STDOUT));
|
||||
}
|
||||
|
||||
/**
|
||||
* @todo Now that this component is PHP 7-only and uses return type declarations
|
||||
* this test makes even less sense than before
|
||||
*/
|
||||
public function testCanDetectColorSupport()/*: void*/
|
||||
public function testCanDetectColorSupport(): void
|
||||
{
|
||||
$this->assertInternalType('boolean', $this->console->hasColorSupport());
|
||||
}
|
||||
@@ -60,7 +57,7 @@ final class ConsoleTest extends TestCase
|
||||
* @todo Now that this component is PHP 7-only and uses return type declarations
|
||||
* this test makes even less sense than before
|
||||
*/
|
||||
public function testCanDetectNumberOfColumns()/*: void*/
|
||||
public function testCanDetectNumberOfColumns(): void
|
||||
{
|
||||
$this->assertInternalType('integer', $this->console->getNumberOfColumns());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user