-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates to server factory configuration
- Loading branch information
iampersistent
committed
Aug 15, 2018
1 parent
a4ac09d
commit 3b8d1cd
Showing
4 changed files
with
127 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Tests\Fixture; | ||
|
||
use Psr\Container\ContainerInterface; | ||
|
||
final class TestContainer implements ContainerInterface | ||
{ | ||
private $values = []; | ||
|
||
public function get($id) | ||
{ | ||
return $this->values[$id]; | ||
} | ||
|
||
public function has($id) | ||
{ | ||
return isset($this->values[$id]); | ||
} | ||
|
||
public function set($id, $value): TestContainer | ||
{ | ||
$this->values[$id] = $value; | ||
|
||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Tests\Fixture; | ||
|
||
use GraphQL\Type\Definition\ResolveInfo; | ||
|
||
final class TestResolver | ||
{ | ||
public function __invoke($val, $args, $context, ResolveInfo $info) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters