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: