Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 936 Bytes

File metadata and controls

34 lines (23 loc) · 936 Bytes

learn-phpspec

Build Status Coverage Status PHPStan

Consume:

$ git clone https://github.com/sitrunlab/learn-phpspec.git
$ cd learn-phpspec
$ composer install
$ bin/phpspec run

Add new Spec:

$ bin/phpspec desc App/Foo

You will get FooSpec class with namespace Spec\App inside spec folder.

Run phpspec:

$ bin/phpspec run

If you don't have an App\Foo.php file, phpspec will ask for generate one for you:

run spec

And you're ready to add more tests first app!