Skip to content

Commit

Permalink
Bumped dependencies removed nette/utisl dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Václav Pelíšek committed Nov 10, 2023
1 parent dbcf80e commit 258d5f3
Show file tree
Hide file tree
Showing 8 changed files with 284 additions and 400 deletions.
8 changes: 3 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "infinityloop-dev/graphpinator-printer",
"description": "Schema printing visitor for GraPHPinator typesystem.",
"homepage": "https://www.infinityloop.dev/",
"homepage": "https://github.com/graphpql/",
"type": "library",
"license": ["MIT"],
"authors": [
Expand All @@ -12,12 +12,10 @@
}
],
"require": {
"infinityloop-dev/graphpinator": "^1.4",
"infinityloop-dev/utils": "^2.1.2",
"nette/utils": "^3.2"
"infinityloop-dev/graphpinator": "^1.4"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"phpunit/phpunit": "^10.4",
"infection/infection": "^0.27",
"phpstan/phpstan": "^1.10",
"infinityloop-dev/coding-standard": "^0.2"
Expand Down
644 changes: 262 additions & 382 deletions composer.lock

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd" cacheDirectory=".phpunit.cache">
<coverage>
<report>
<clover outputFile="./build/phpunit.clover.xml"/>
<html outputDirectory="./build/html" lowUpperBound="70" highLowerBound="100"/>
Expand All @@ -12,7 +9,7 @@
</coverage>
<testsuites>
<testsuite name="integration">
<directory>tests/Integration</directory>
<directory>tests/Integration</directory>
</testsuite>
<testsuite name="feature">
<directory>tests/Feature</directory>
Expand All @@ -21,4 +18,9 @@
<logging>
<junit outputFile="./build/logfile.xml"/>
</logging>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
</source>
</phpunit>
2 changes: 0 additions & 2 deletions src/HtmlVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

final class HtmlVisitor implements PrintComponentVisitor
{
use \Nette\SmartObject;

private const LINK_TEXTS = ['Q', 'M', 'S'];
private const LINK_TITLES = ['Go to query root type', 'Go to mutation root type', 'Go to subscription root type'];

Expand Down
2 changes: 0 additions & 2 deletions src/Printer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

final class Printer
{
use \Nette\SmartObject;

private \Graphpinator\Printer\PrintComponentVisitor $visitor;
private \Graphpinator\Printer\Sorter $sorter;

Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/ImplicitInheritanceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ protected function getFieldDefinition() : \Graphpinator\Typesystem\Field\FieldSe
};
}

public function simpleDataProvider() : array
public static function simpleDataProvider() : array
{
return [
[
Expand Down
9 changes: 8 additions & 1 deletion tests/Integration/HtmlPrinterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//@phpcs:disable SlevomatCodingStandard.Files.LineLength.LineTooLong
final class HtmlPrinterTest extends \PHPUnit\Framework\TestCase
{
public function simpleDataProvider() : array
public static function simpleDataProvider() : array
{
$container = new \Graphpinator\SimpleContainer([], []);

Expand Down Expand Up @@ -254,6 +254,13 @@ public function simpleDataProvider() : array
<span class="colon">:</span>&nbsp;
<span class="field-type"><a class="typename" title="String built-in type">String</a></span>
</div>
<div class="line">
<span class="field-name">isOneOf</span>
<span class="colon">:</span>&nbsp;
<span class="field-type"><a class="typename" title="Boolean built-in type">Boolean</a></span>
</div>
</div>
<div class="line">
Expand Down
3 changes: 2 additions & 1 deletion tests/Integration/PrintTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

final class PrintTest extends \PHPUnit\Framework\TestCase
{
public function simpleDataProvider() : array
public static function simpleDataProvider() : array
{
$container = new \Graphpinator\SimpleContainer([], []);

Expand Down Expand Up @@ -77,6 +77,7 @@ enumValues(
): [__InputValue!]
ofType: __Type
specifiedByURL: String
isOneOf: Boolean
}
EOL,
],
Expand Down

0 comments on commit 258d5f3

Please sign in to comment.