File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Neo4j \QueryAPI \Tests \Unit \Authentication ;
4
4
5
+ use DG \BypassFinals ;
5
6
use Neo4j \QueryAPI \Authentication \NoAuth ;
6
7
use PHPUnit \Framework \TestCase ;
7
8
use Psr \Http \Message \RequestInterface ;
@@ -10,16 +11,18 @@ final class NoAuthUnitTest extends TestCase
10
11
{
11
12
private NoAuth $ auth ;
12
13
private RequestInterface $ requestMock ;
13
- #[\Override]
14
+
15
+ #[\Override]
14
16
protected function setUp (): void
15
17
{
18
+ BypassFinals::enable ();
19
+
16
20
$ this ->auth = new NoAuth ();
17
21
$ this ->requestMock = $ this ->createMock (RequestInterface::class);
18
22
}
19
23
20
24
public function testAuthenticateReturnsUnmodifiedRequest (): void
21
25
{
22
-
23
26
$ this ->assertSame ($ this ->requestMock , $ this ->auth ->authenticate ($ this ->requestMock ));
24
27
}
25
28
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- use DG \BypassFinals ;
4
3
5
4
require __DIR__ . '/../vendor/autoload.php ' ;
6
5
7
- BypassFinals::enable ();
6
+ DG \ BypassFinals::enable ();
You can’t perform that action at this time.
0 commit comments