ObjectCreatorServiceTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 13
c 0
b 0
f 0
rs 10
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCreateObjectFromInterface() 0 6 1
1
<?php
2
declare(strict_types=1);
3
/**
4
 * Created by PhpStorm.
5
 * User: benedikt
6
 * Date: 2/27/18
7
 * Time: 7:47 PM
8
 */
9
10
namespace Tfboe\FmLib\Tests\Integration;
11
12
13
use Tfboe\FmLib\Entity\PlayerInterface;
14
use Tfboe\FmLib\Service\ObjectCreatorService;
15
use Tfboe\FmLib\TestHelpers\LumenTestCase;
16
use Tfboe\FmLib\Tests\Helpers\ApplicationGetter;
17
18
/**
19
 * Class ObjectCreatorServiceTest
20
 * @package Tfboe\FmLib\Tests\Integration
21
 */
22
class ObjectCreatorServiceTest extends LumenTestCase
23
{
24
  use ApplicationGetter;
25
26
//<editor-fold desc="Public Methods">
27
  public function testCreateObjectFromInterface()
28
  {
29
    $service = app()->make(ObjectCreatorService::class);
30
    $player = $service->createObjectFromInterface(PlayerInterface::class);
31
    self::assertInstanceOf(PlayerInterface::class, $player);
32
  }
33
//</editor-fold desc="Public Methods">
34
}