Skip to content

Commit 8475b97

Browse files
Fixed tests
1 parent 9dbeb09 commit 8475b97

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

tests/CommandTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ class CommandTest extends TestCase
2424
/**
2525
* This additional autoloader is needed to test if the class is not put multiple times into the cache.
2626
*
27-
* See https://github.com/ClassPreloader/ClassPreloader/pull/35.
27+
* @before
2828
*/
29-
public function setUp()
29+
public function setUpAutoloader()
3030
{
3131
$this->autoloadFunc = function ($class) {
3232
return false;
@@ -35,7 +35,10 @@ public function setUp()
3535
spl_autoload_register($this->autoloadFunc, true, true);
3636
}
3737

38-
public function tearDown()
38+
/**
39+
* @after
40+
*/
41+
public function tearDownAutoloader()
3942
{
4043
spl_autoload_unregister($this->autoloadFunc);
4144
}

vendor-bin/phpstan/composer.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"require": {
3-
"phpstan/phpstan": "^0.12.3",
4-
"phpstan/extension-installer": "^1.0.3",
5-
"phpstan/phpstan-strict-rules": "^0.12",
6-
"phpstan/phpstan-symfony": "^0.12"
3+
"php": "^7.2.5 || ^8.0",
4+
"phpstan/phpstan": "0.12.64",
5+
"phpstan/extension-installer": "1.1.0",
6+
"phpstan/phpstan-php-parser": "0.12.3",
7+
"phpstan/phpstan-strict-rules": "0.12.7",
8+
"phpstan/phpstan-symfony": "0.12.12"
79
}
810
}

0 commit comments

Comments
 (0)