File tree Expand file tree Collapse file tree 10 files changed +64
-9
lines changed Expand file tree Collapse file tree 10 files changed +64
-9
lines changed Original file line number Diff line number Diff line change 24
24
--health-retries 5
25
25
--health-timeout 5s
26
26
27
- name : Run PHPUnit Tests
27
+ name : Run PHPUnit Tests With Coverage
28
28
runs-on : ubuntu-latest
29
29
steps :
30
30
- name : Checkout code
51
51
NEO4J_ADDRESS : " http://localhost:7474"
52
52
NEO4J_USERNAME : " neo4j"
53
53
NEO4J_PASSWORD : " password"
54
- run : vendor/bin/phpunit --configuration phpunit.dist.xml ./tests
54
+ run : vendor/bin/phpunit --configuration phpunit.coverage.xml ./tests
55
+ - name : Upload coverage to Codecov
56
+ uses : codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574
57
+ with :
58
+ token : ${{ secrets.CODECOV_TOKEN }}
59
+ files : ./coverage/coverage.xml
60
+ fail_ci_if_error : true
61
+ verbose : true
Original file line number Diff line number Diff line change @@ -20,4 +20,6 @@ xml-coverage
20
20
composer.lock
21
21
22
22
.env
23
- .phpunit.result.cache
23
+ .phpunit.result.cache
24
+
25
+ .env
Original file line number Diff line number Diff line change 1
1
# Neo4j Query API client
2
2
3
+
4
+ ![ License] ( https://img.shields.io/github/license/nagels-tech/neo4j-query-api )
5
+ ![ Version] ( https://img.shields.io/github/v/release/nagels-tech/neo4j-query-api )
6
+ [ ![ Codacy Badge] ( https://app.codacy.com/project/badge/Grade/2cb8a1e71ed04987b1c763a09e196c84 )] ( https://app.codacy.com/gh/nagels-tech/neo4j-query-api/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade )
7
+ [ ![ codecov] ( https://codecov.io/github/nagels-tech/neo4j-query-api/graph/badge.svg?token=NTHCFY38D7 )] ( https://codecov.io/github/nagels-tech/neo4j-query-api )
8
+ ![ Packagist Downloads] ( https://img.shields.io/packagist/dt/neo4j-php/query-api )
9
+
3
10
## Interact programmatically with Top Graph Technology
4
11
5
12
- Easy to start with, just build your client in one line and start running queries
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <phpunit bootstrap =" tests/bootstrap.php"
3
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi : noNamespaceSchemaLocation =" vendor/phpunit/phpunit/phpunit.xsd"
5
+ failOnDeprecation =" true"
6
+ failOnNotice =" true"
7
+ failOnPhpunitDeprecation =" true"
8
+ failOnIncomplete =" true"
9
+ failOnEmptyTestSuite =" true"
10
+ failOnRisky =" true"
11
+ failOnSkipped =" true"
12
+ failOnWarning =" true"
13
+ displayDetailsOnTestsThatTriggerDeprecations =" true"
14
+ displayDetailsOnPhpunitDeprecations =" true" >
15
+ <!-- Define a basic testsuite -->
16
+ <testsuites >
17
+ <testsuite name =" Default" >
18
+ <directory >tests</directory >
19
+ </testsuite >
20
+ </testsuites >
21
+ <source >
22
+ <include >
23
+ <directory suffix =" .php" >src</directory >
24
+ </include >
25
+ </source >
26
+
27
+ <coverage >
28
+ <report >
29
+ <clover outputFile =" ./coverage/clover.xml" />
30
+ <cobertura outputFile =" ./coverage/cobertura.xml" />
31
+ <crap4j outputFile =" ./coverage/crap4j.xml" threshold =" 50" />
32
+ <html outputDirectory =" ./coverage/html" lowUpperBound =" 35" highLowerBound =" 70" />
33
+ <php outputFile =" ./coverage/coverage.php" />
34
+ <text outputFile =" ./coverage/coverage.txt" showUncoveredFiles =" false" showOnlySummary =" true" />
35
+ <xml outputDirectory =" ./coverage/xml" />
36
+ </report >
37
+ </coverage >
38
+ </phpunit >
Original file line number Diff line number Diff line change 24
24
</testsuite >
25
25
</testsuites >
26
26
27
+
27
28
<php >
28
29
<!-- <env name="NEO4J_ADDRESS" value="<put your address here>"/>-->
29
30
<!-- <env name="NEO4J_USERNAME" value="<put your name here>"/>-->
30
31
<!-- <env name="NEO4J_PASSWORD" value="<put your password here>"/>-->
31
32
</php >
32
- </phpunit >
33
+ </phpunit >
Original file line number Diff line number Diff line change 6
6
use Neo4j \QueryAPI \Objects \Bookmarks ;
7
7
use Neo4j \QueryAPI \Enums \AccessMode ;
8
8
9
- final class Configuration
9
+ class Configuration
10
10
{
11
11
/**
12
12
* Constructor for Configuration class.
Original file line number Diff line number Diff line change 8
8
use Psr \Http \Message \RequestInterface ;
9
9
use Psr \Http \Message \StreamFactoryInterface ;
10
10
11
- final class Neo4jRequestFactory
11
+ class Neo4jRequestFactory
12
12
{
13
13
public function __construct (
14
14
private RequestFactoryInterface $ psr17Factory ,
Original file line number Diff line number Diff line change 16
16
use Neo4j \QueryAPI \Objects \Temporal \LocalTime ;
17
17
use Neo4j \QueryAPI \Objects \Temporal \Time ;
18
18
19
- final class OGM
19
+ class OGM
20
20
{
21
21
/**
22
22
* @param array<array-key, mixed> $data
Original file line number Diff line number Diff line change 13
13
use RuntimeException ;
14
14
use Neo4j \QueryAPI \Objects \ProfiledQueryPlan ;
15
15
16
- final class ResponseParser
16
+ class ResponseParser
17
17
{
18
18
public function __construct (private readonly OGM $ ogm )
19
19
{
Original file line number Diff line number Diff line change 18
18
* @implements ArrayAccess<int, ResultRow>
19
19
* @implements IteratorAggregate<int, ResultRow>
20
20
*/
21
- final class ResultSet implements IteratorAggregate, Countable, ArrayAccess
21
+ class ResultSet implements IteratorAggregate, Countable, ArrayAccess
22
22
{
23
23
/**
24
24
* @param list<ResultRow> $rows
You can’t perform that action at this time.
0 commit comments