Applied code formator

This commit is contained in:
Kevin Frantz
2018-11-04 12:25:53 +01:00
parent 00ae6412e6
commit 577f30e0f7
8 changed files with 29 additions and 24 deletions

View File

@@ -21,12 +21,13 @@ class NameSourceTest extends TestCase
$this->nameSource = new NameSource();
}
public function testConstructor():void{
public function testConstructor(): void
{
$this->assertInstanceOf(NameSourceInterface::class, $this->nameSource);
$this->expectException(\TypeError::class);
$this->nameSource->getName();
}
public function testName(): void
{
$name = 'Hello World!';

View File

@@ -1,4 +1,5 @@
<?php
namespace tests\unit\Entity\Source\Data;
use PHPUnit\Framework\TestCase;
@@ -10,18 +11,18 @@ use App\Entity\Source\Data\NameSourceInterface;
class UserSourceTest extends TestCase
{
/**
*
* @var UserSourceInterface
*/
public $userSource;
public function setUp():void{
public function setUp(): void
{
$this->userSource = new UserSource();
}
public function testConstructor():void {
public function testConstructor(): void
{
$this->assertInstanceOf(Collection::class, $this->userSource->getMemberships());
$this->assertInstanceOf(NameSourceInterface::class, $this->userSource->getNameSource());
}
}