Skip to content

Commit fb0c6da

Browse files
author
Bastian Hofmann
committed
Update php-timer and phpunit
1 parent 889bfef commit fb0c6da

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
],
1111
"require": {
1212
"php": "^7.0.0",
13-
"symfony/console" : "^2.1.0|^3.0.0",
13+
"symfony/console" : "^2.1.0|^3.0.0|^4.0.0",
1414
"nikic/php-parser" : "^2.0.0|^3.0.0",
15-
"phpunit/php-timer": "^1.0.0"
15+
"phpunit/php-timer": "^2.0.0"
1616
},
1717
"autoload" : {
1818
"psr-4" : {
@@ -23,6 +23,6 @@
2323
"phpnsc"
2424
],
2525
"require-dev": {
26-
"phpunit/phpunit": "^6.0.0"
26+
"phpunit/phpunit": "^7.0.0"
2727
}
2828
}

src/ClassScanner.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ class ClassScanner
3131
*/
3232
private $output;
3333

34+
/**
35+
* @var bool
36+
*/
37+
public $foundError;
38+
3439
/**
3540
* @param FilesystemAccess $filesystem
3641
* @param string $root

src/Command.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
namespace rg\tools\phpnsc;
1212

13+
use SebastianBergmann\Timer\Timer;
1314
use Symfony\Component\Console;
1415
use Symfony\Component\Console\Application;
1516

@@ -72,7 +73,7 @@ protected function execute(Console\Input\InputInterface $input, Console\Output\O
7273

7374
$outputClass->printAll();
7475

75-
$outputClass->writeln(\PHP_Timer::resourceUsage());
76+
$outputClass->writeln(Timer::resourceUsage());
7677

7778
if ($classScanner->foundError || $classModifier->foundError) {
7879
return 1;

src/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class Config
1414
{
1515
/**
16-
* @var FilesysyemAccess
16+
* @var FilesystemAccess
1717
*/
1818
private $filesystem;
1919

src/NamespaceDependencyChecker.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ class NamespaceDependencyChecker
2929
*/
3030
private $output;
3131

32+
/**
33+
* @var bool
34+
*/
35+
public $foundError;
36+
3237
/**
3338
* @param FilesystemAccess $filesystem
3439
* @param ClassScanner $classScanner

0 commit comments

Comments
 (0)