Completed
Push — master ( 5ff1a9...a03b1e )
by Erin
01:51
created

interface.bdd.php ➔ expect()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 1
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
use Peridot\Leo\Assertion;
3
use Peridot\Leo\Leo;
4
5
/**
6
 * Returns Leo's Assertion object and sets
7
 * the actual value on it. The returned Assertion can then
8
 * be used for extension and chainable assertions.
9
 *
10
 * @param mixed $actual
11
 * @return Assertion
12
 */
13
function expect($actual)
14
{
15
    $instance = Leo::instance();
16
    $assertion = $instance->getAssertion();
17
    return $assertion->setActual($actual);
18
}
19