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

ToBeOneOf::match()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
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