Skip to content

Commit

Permalink
Add new parameters and functions, first tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Culka committed Mar 4, 2021
1 parent 23e0a19 commit c1ab3b7
Show file tree
Hide file tree
Showing 10 changed files with 3,574 additions and 398 deletions.
3 changes: 3 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
HARVEY_URL=https://harvey.local/
HARVEY_USERNAME=harveyuser
HARVEY_PASSWORD=harveypass
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/vendor/
.idea
vendor/
.idea
.env
.phpunit.result.cache
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@
Service for making requests on Harvey API v2.

## Installation
Add repository to composer.json:
```
"repositories": [
{
"type": "git",
"url": "https://github.com/trexima/harvey-client.git"
}
],
```

Installation with Composer:
```
composer require trexima/harvey-client
Expand Down
10 changes: 8 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@
"guzzlehttp/guzzle": "^6.4"
},
"require-dev": {
"roave/security-advisories": "dev-master"
"roave/security-advisories": "dev-master",
"phpunit/phpunit": "^9.5",
"symfony/cache": "^5.2",
"symfony/dotenv": "^5.2"
},
"autoload": {
"psr-4": {"Trexima\\HarveyClient\\": "src/"}
"psr-4": {
"Trexima\\HarveyClient\\": "src/",
"Trexima\\Tests\\": "tests/"
}
}
}
3,540 changes: 3,289 additions & 251 deletions composer.lock

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="tests/bootstrap.php">
<coverage>
<include>
<directory>src</directory>
</include>
</coverage>
<php>
<ini name="error_reporting" value="-1"/>
<server name="APP_ENV" value="test" force="true"/>
<server name="SHELL_VERBOSITY" value="-1"/>
<server name="SYMFONY_PHPUNIT_REMOVE" value=""/>
<server name="SYMFONY_PHPUNIT_VERSION" value="9"/>
</php>
<testsuites>
<testsuite name="Project Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<!-- <extensions>-->
<!-- &lt;!&ndash; it begins a database transaction before every testcase and rolls it back after-->
<!-- the test finished, so tests can manipulate the database without affecting other tests &ndash;&gt;-->
<!--&lt;!&ndash; <extension class="\DAMA\DoctrineTestBundle\PHPUnit\PHPUnitExtension" />&ndash;&gt;-->
<!-- </extensions>-->
</phpunit>
Loading

0 comments on commit c1ab3b7

Please sign in to comment.