Applied code formator

This commit is contained in:
Kevin Frantz
2018-11-06 20:08:28 +01:00
parent a3bbd64f43
commit 1fa93e577a
5 changed files with 21 additions and 26 deletions

View File

@@ -1,4 +1,5 @@
<?php
namespace Tests\Unit\Entity\Attribut;
use PHPUnit\Framework\TestCase;
@@ -9,26 +10,27 @@ use App\Entity\Meta\RecieverInterface;
class RecieverAttributTest extends TestCase
{
/**
*
* @var RecieverAttributInterface
*/
protected $reciever;
public function setUp():void{
$this->reciever = new class implements RecieverAttributInterface{
public function setUp(): void
{
$this->reciever = new class() implements RecieverAttributInterface {
use RecieverAttribut;
};
}
public function testConstructor():void{
public function testConstructor(): void
{
$this->expectException(\TypeError::class);
$this->reciever->getReciever();
}
public function testAccessors():void{
public function testAccessors(): void
{
$reciever = $this->createMock(RecieverInterface::class);
$this->assertNull($this->reciever->setReciever($reciever));
$this->assertEquals($reciever, $this->reciever->getReciever());
}
}