Logo: Relish

  1. Sign in

Project: Phpspec

Developer generates a spec

As a Developer
I want to automate creating specs
In order to avoid repetitive tasks and interruptions in development flow

Scenarios
Generating a spec
When
I start describing the "CodeGeneration/SpecExample1/Markdown" class
Then
a new spec should be generated in the "spec/CodeGeneration/SpecExample1/MarkdownSpec.php":
<?php

namespace spec\CodeGeneration\SpecExample1;

use PhpSpec\ObjectBehavior;
use Prophecy\Argument;

class MarkdownSpec extends ObjectBehavior
{
    function it_is_initializable()
    {
        $this->shouldHaveType('CodeGeneration\SpecExample1\Markdown');
    }
}

Last published about 5 years ago by Marcello Duarte.