Skip to content

Commit 0e77f10

Browse files
fixed conflicts
2 parents 76bbb04 + 742e892 commit 0e77f10

File tree

10 files changed

+64
-9
lines changed

10 files changed

+64
-9
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
--health-retries 5
2525
--health-timeout 5s
2626
27-
name: Run PHPUnit Tests
27+
name: Run PHPUnit Tests With Coverage
2828
runs-on: ubuntu-latest
2929
steps:
3030
- name: Checkout code
@@ -51,4 +51,11 @@ jobs:
5151
NEO4J_ADDRESS: "http://localhost:7474"
5252
NEO4J_USERNAME: "neo4j"
5353
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

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ xml-coverage
2020
composer.lock
2121

2222
.env
23-
.phpunit.result.cache
23+
.phpunit.result.cache
24+
25+
.env

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Neo4j Query API client
22

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+
310
## Interact programmatically with Top Graph Technology
411

512
- Easy to start with, just build your client in one line and start running queries

phpunit.coverage.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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>

phpunit.dist.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
</testsuite>
2525
</testsuites>
2626

27+
2728
<php>
2829
<!-- <env name="NEO4J_ADDRESS" value="<put your address here>"/>-->
2930
<!-- <env name="NEO4J_USERNAME" value="<put your name here>"/>-->
3031
<!-- <env name="NEO4J_PASSWORD" value="<put your password here>"/>-->
3132
</php>
32-
</phpunit>
33+
</phpunit>

src/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Neo4j\QueryAPI\Objects\Bookmarks;
77
use Neo4j\QueryAPI\Enums\AccessMode;
88

9-
final class Configuration
9+
class Configuration
1010
{
1111
/**
1212
* Constructor for Configuration class.

src/Neo4jRequestFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Psr\Http\Message\RequestInterface;
99
use Psr\Http\Message\StreamFactoryInterface;
1010

11-
final class Neo4jRequestFactory
11+
class Neo4jRequestFactory
1212
{
1313
public function __construct(
1414
private RequestFactoryInterface $psr17Factory,

src/OGM.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Neo4j\QueryAPI\Objects\Temporal\LocalTime;
1717
use Neo4j\QueryAPI\Objects\Temporal\Time;
1818

19-
final class OGM
19+
class OGM
2020
{
2121
/**
2222
* @param array<array-key, mixed> $data

src/ResponseParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use RuntimeException;
1414
use Neo4j\QueryAPI\Objects\ProfiledQueryPlan;
1515

16-
final class ResponseParser
16+
class ResponseParser
1717
{
1818
public function __construct(private readonly OGM $ogm)
1919
{

src/Results/ResultSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @implements ArrayAccess<int, ResultRow>
1919
* @implements IteratorAggregate<int, ResultRow>
2020
*/
21-
final class ResultSet implements IteratorAggregate, Countable, ArrayAccess
21+
class ResultSet implements IteratorAggregate, Countable, ArrayAccess
2222
{
2323
/**
2424
* @param list<ResultRow> $rows

0 commit comments

Comments
 (0)