Skip to content

Commit

Permalink
Add phpunit.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Vegner committed Jul 31, 2017
1 parent 9a19139 commit d6ebe9e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
12 changes: 12 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
bootstrap="vendor/autoload.php"
colors="true"
verbose="true"
>
<testsuites>
<testsuite>
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>
</phpunit>
2 changes: 1 addition & 1 deletion src/DeclarerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ interface DeclarerInterface {
/**
* @return string[]
**/
public function declareDependencies(): array;
public function declareDependencies();
}
7 changes: 5 additions & 2 deletions tests/HelloWorldService.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php
namespace tests;

class HelloWorldService implements SD\DependencyInjection\DeclarerInterface {
use SD\DependencyInjection\ContainerAwareTrait;
use SD\DependencyInjection\DeclarerInterface;
use SD\DependencyInjection\ContainerAwareTrait;

class HelloWorldService implements DeclarerInterface {
use ContainerAwareTrait;

private $name;

Expand Down

0 comments on commit d6ebe9e

Please sign in to comment.