$myString = 'Testing';
expect($myString)
->toBeString()
->toContain('Test')
->toBeShorterThan(8)
->resolve();
use Schruptor\Expectation\Expectation;
$myArray = ['a' => 'A', 'b' => 'B', 'c' => 'C'];
Expectation::isThat($myArray)
->isArray()
->hasKeys(['a', 'b', 'c'])
->hasValue('B')
->resolve();
You can install the package via composer:
composer require schruptor/expectation