Tests   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A dir() 0 4 1
A loadFixtureFile() 0 4 1
1
<?php
2
3
namespace BenTools\Currency\Tests;
4
5
class Tests
6
{
7
8
    /**
9
     * @return string
10
     */
11
    public static function dir(): string
12
    {
13
        return __DIR__;
14
    }
15
16
    public static function loadFixtureFile(string $filename)
17
    {
18
        return file_get_contents(sprintf('%s/fixtures/%s', self::dir(), $filename));
19
    }
20
21
}