1: <?php
2:
3: /**
4: * This file is part of expect package.
5: *
6: * (c) Noritaka Horio <holy.shared.design@gmail.com>
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: