Install it using the composer require command:
composer require --dev bossa/phpspec2-expectAlternativelly you can add it to the composer.json file
{
"require-dev": {
"bossa/phpspec2-expect": "^2.2"
},
"config": {
"bin-dir": "bin"
},
"minimum-stability": "dev",
"autoload": {
"psr-0": {
"spec": "",
"": "src"
}
}
}Inside some example:
expect(file_exists('crazyfile.xtn'))->toBe(true);