Skip to content

Commit cf1ef6b

Browse files
committed
Tests: fixes
1 parent b54f214 commit cf1ef6b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

tests/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Folders - recursive
2+
*.expected
3+
*.actual
4+
15
# Folders
26
/tmp
37

tests/bootstrap.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,4 @@
88
}
99

1010
// Configure environment
11-
Environment::setupTester();
12-
Environment::setupTimezone();
13-
Environment::setupVariables(__DIR__);
11+
Environment::setup(__DIR__);

tests/cases/DI/AnnotationsExtensionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function testNoCache(): void
7878

7979
$container = new $class();
8080
Assert::true($container instanceof Container);
81-
}, InvalidStateException::class, 'Service \'annotations.reader\' (type of Doctrine\Common\Annotations\Reader): Service of type \'Doctrine\Common\Cache\Cache\' not found.');
81+
}, InvalidStateException::class, "Service 'annotations.reader' (type of Doctrine\Common\Annotations\Reader): Service of type Doctrine\Common\Cache\Cache not found. Did you add it to configuration file?");
8282
}
8383

8484
}

0 commit comments

Comments
 (0)