Browse Source

test work

pull/1/head
Cerys Lewis 6 months ago
parent
commit
bf19e44221
  1. 16
      composer.lock
  2. 10
      phpunit.xml
  3. 2
      tests/QueryBuilderPutTest.php
  4. 3
      tests/bootstrap.php

16
composer.lock

@ -145,12 +145,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/nikic/PHP-Parser.git", "url": "https://github.com/nikic/PHP-Parser.git",
"reference": "c5ee33df86c06b3278c670f64273b1ba768a0744" "reference": "daaadc3bae458908aa477b90a8932e7da9253f22"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/c5ee33df86c06b3278c670f64273b1ba768a0744", "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/daaadc3bae458908aa477b90a8932e7da9253f22",
"reference": "c5ee33df86c06b3278c670f64273b1ba768a0744", "reference": "daaadc3bae458908aa477b90a8932e7da9253f22",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -196,7 +196,7 @@
"issues": "https://github.com/nikic/PHP-Parser/issues", "issues": "https://github.com/nikic/PHP-Parser/issues",
"source": "https://github.com/nikic/PHP-Parser/tree/master" "source": "https://github.com/nikic/PHP-Parser/tree/master"
}, },
"time": "2024-04-19T12:04:10+00:00" "time": "2024-06-03T06:24:19+00:00"
}, },
{ {
"name": "phar-io/manifest", "name": "phar-io/manifest",
@ -642,12 +642,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "0826901219afd2970f0ec8b7a5bce8f0e3000efc" "reference": "bfe55ab9f51514c30870772e70d825eb160508bf"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0826901219afd2970f0ec8b7a5bce8f0e3000efc", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/bfe55ab9f51514c30870772e70d825eb160508bf",
"reference": "0826901219afd2970f0ec8b7a5bce8f0e3000efc", "reference": "bfe55ab9f51514c30870772e70d825eb160508bf",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -737,7 +737,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-05-16T09:07:01+00:00" "time": "2024-06-03T05:41:34+00:00"
}, },
{ {
"name": "sebastian/cli-parser", "name": "sebastian/cli-parser",

10
phpunit.xml

@ -0,0 +1,10 @@
<phpunit
colors="true"
bootstrap="tests/bootstrap.php"
>
<testsuites>
<testsuite name="DeegraphPHP Tests">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>

2
tests/QueryBuilderPutTests.php → tests/QueryBuilderPutTest.php

@ -5,7 +5,7 @@ use Darksparrow\DeegraphPHP\Exceptions\QueryBuilderConflictingFieldAlreadyExists
use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilder; use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilder;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
final class QueryBuilderPutTests extends TestCase final class QueryBuilderPutTest extends TestCase
{ {
public function testPutURIAtSafeWithValidData() public function testPutURIAtSafeWithValidData()
{ {

3
tests/bootstrap.php

@ -0,0 +1,3 @@
<?php
namespace tests;
Loading…
Cancel
Save