Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

[WIP] describe and prove features using behat #128

Closed
wants to merge 25 commits into from

Conversation

docteurklein
Copy link
Contributor

No description provided.

}

/**
* @Then it should be registered
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Then :alias: should be registered ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

totally right! I forget that, thanks :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@then :alias should be registered

try {
$this->app->getContainer()->get('form.factory')->create($alias);
} catch (\Exception $e) {
// all good
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can detect lots of other errors. You should use the form.registry service instead to verify the registration of the type

@PedroTroller PedroTroller deleted the feature/behat branch February 24, 2015 09:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants