File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 33namespace Neo4j \Neo4jBundle \Tests \App \Controller ;
44
55use Laudis \Neo4j \Contracts \ClientInterface ;
6- use Laudis \Neo4j \Neo4j \Neo4jDriver ;
7- use Neo4j \Neo4jBundle \SymfonyClient ;
86use Symfony \Bundle \FrameworkBundle \Controller \AbstractController ;
97use Symfony \Component \HttpFoundation \Response ;
108use Symfony \Component \Routing \Attribute \Route ;
@@ -16,11 +14,12 @@ public function __construct(
1614 ) {
1715 }
1816
19- #[Route(" / " , methods: [" GET " ])]
17+ #[Route(' / ' , methods: [' GET ' ])]
2018 public function index (): Response
2119 {
2220 $ this ->client ->run ('MATCH (n) RETURN n ' );
2321 $ this ->client ->run ('MATCH (n) RETURN n ' );
22+
2423 return $ this ->render ('index.twig.html ' );
2524 }
26- }
25+ }
Original file line number Diff line number Diff line change 22
33namespace Functional ;
44
5+ use Neo4j \Neo4jBundle \Collector \Neo4jDataCollector ;
56use Neo4j \Neo4jBundle \Tests \App \TestKernel ;
67use Symfony \Bundle \FrameworkBundle \Test \WebTestCase ;
78
@@ -21,10 +22,12 @@ public function testProfiler()
2122
2223 $ this ->assertResponseIsSuccessful ();
2324 if ($ profile = $ client ->getProfile ()) {
25+ /** @var Neo4jDataCollector $collector */
26+ $ collector = $ profile ->getCollector ('neo4j ' );
2427 $ this ->assertEquals (
2528 2 ,
26- $ profile -> getCollector ( ' neo4j ' ) ->getQueryCount ()
29+ $ collector ->getQueryCount ()
2730 );
2831 }
2932 }
30- }
33+ }
You can’t perform that action at this time.
0 commit comments