Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpspec2 Expect Laravel Package

bossa/phpspec2-expect

Adds an expect() helper to PhpSpec for simple, expressive assertions like expect($value)->toBe(true). Install via Composer as a dev dependency and use in specs for quick expectation-style checks.

View on GitHub
Deep Wiki
Context7

Build Status

phpspec2-expect

Installation

Install it using the composer require command:

   composer require --dev bossa/phpspec2-expect

Alternativelly you can add it to the composer.json file

{
    "require-dev": {
         "bossa/phpspec2-expect": "^3.0"
    },
    "config": {
        "bin-dir": "bin"
    },
    "minimum-stability": "dev",
    "autoload": {
        "psr-0": {
            "spec": "",
            "": "src"
        }
    }
}

Usage

Inside some example:


       expect(file_exists('crazyfile.xtn'))->toBe(true);

Roadmap

Version 2.x supports PhpSpec 3 and PHP 5.6.

Version 3.0.x requires PhpSpec 4, and therefore requires PHP 7.

Version 3.1.x requires PhpSpec 5 and PHP 7.

These versions are all under active support.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle