Completed
Push — master ( 8ea842...1a32c5 )
by Noritaka
16:40
created

Utility.php ➔ expect()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
/**
4
 * This file is part of expect package.
5
 *
6
 * (c) Noritaka Horio <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
namespace expect;
12
13
/**
14
 * Utility function for php5.6 or higher.
15
 *
16
 * <code>
17
 * <?php
18
 * use function expect\expect;
19
 *
20
 * expect($actual)->toBeTrue();
21
 * expect($actual)->toBeFalse();
22
 * ?>
23
 * </code>
24
 *
25
 * @param mixed $actual
26
 *
27
 * @return \expect\Context
28
 */
29
function expect($actual)
30
{
31
    return Expect::that($actual);
32
}
33