Overview

Namespaces

  • None
  • Peridot
    • Leo
      • Formatter
      • Interfaces
        • Assert
      • Matcher
        • Template
      • ObjectPath
      • Responder
  • PHP

Functions

  • expect
  • Overview
  • Namespace
  • Function
  • Tree
 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: 
Leo API documentation generated by ApiGen