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

@@ -1,4 +1,5 @@
<?php
namespace App\Entity\Attribut;
use PHPUnit\Framework\TestCase;
@@ -9,22 +10,24 @@ class NameAttributTest extends TestCase
* @var NameAttributInterface
*/
public $name;
public function setUp():void{
$this->name = new class implements NameAttributInterface{
public function setUp(): void
{
$this->name = new class() implements NameAttributInterface {
use NameAttribut;
};
}
public function testConstructor():void{
public function testConstructor(): void
{
$this->expectException(\TypeError::class);
$this->name->getName();
}
public function testAccessors():void{
$name = "hello world!";
public function testAccessors(): void
{
$name = 'hello world!';
$this->assertNull($this->name->setName($name));
$this->assertEquals($name, $this->name->getName());
}
}