Useup   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
lcom 0
cbo 5
dl 0
loc 31
rs 10
c 1
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A phpunit() 0 4 1
A beberlei() 0 4 1
A webmozart() 0 4 1
A webAssert() 0 4 1
1
<?php
2
3
namespace UnicadeAssert;
4
5
class Useup
6
{
7
    /**
8
     * @return \PHPUnit_Framework_Assert
9
     */
10
    public static function phpunit()
11
    {
12
        return new PHPUnitFacade();
13
    }
14
    /**
15
     * @return \Assert\Assertion
16
     */
17
    public static function beberlei()
18
    {
19
        return new BeberleiFacade();
20
    }
21
    /**
22
     * @return \Webmozart\Assert\Assert
23
     */
24
    public static function webmozart()
25
    {
26
        return new WebmozartFacade();
27
    }
28
    /**
29
     * @return CustomAssert
30
     */
31
    public static function webAssert(\Behat\Mink\Mink $minkContext)
32
    {
33
        return new CustomAssert($minkContext->getSession());
34
    }
35
}
36