Completed
Push — master ( ef120b...d05d47 )
by Simon
03:10
created

ToBeOneOf   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A match() 0 4 1
A description() 0 4 1
1
<?php
2
namespace Kahlan\Extra\Matcher;
3
4
use Kahlan\Matcher\ToContain;
5
6
class ToBeOneOf
7
{
8
    /**
9
     * Checks that `$expected` has value of `$actual`.
10
     *
11
     * @param  mixed   $actual   The actual value.
12
     * @param  mixed   $expected The expected value.
13
     * @return boolean
14
     */
15
    public static function match($actual, $expected)
16
    {
17
        return ToContain::match($expected, $actual);
18
    }
19
20
    /**
21
     * Returns the description message.
22
     *
23
     * @return string The description message.
24
     */
25
    public static function description()
26
    {
27
        return "be part of the expected values.";
28
    }
29
}
30