Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init Behat Bridge package #149

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

loic425
Copy link
Member

@loic425 loic425 commented Dec 9, 2024

I've created a new base branch to create this new package.

@loic425 loic425 marked this pull request as draft December 9, 2024 11:19
@loic425 loic425 changed the base branch from main to behat-bridge December 9, 2024 11:20
@loic425 loic425 marked this pull request as ready for review December 9, 2024 11:20
Comment on lines +47 to +49
if (!isset($this->clipboard[$this->latestKey])) {
throw new InvalidArgumentException('There is no latest resource!');
}
Copy link
Member

Choose a reason for hiding this comment

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

I'm out of context how this function is used, but normally I would expect it to return null, if something is not present.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

@loic425 loic425 Dec 9, 2024

Choose a reason for hiding this comment

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

I think it's to help debugging Behat scenario issues very quickly.


public function set(string $key, mixed $resource): void;

public function getLatestResource(): mixed;
Copy link
Member

Choose a reason for hiding this comment

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

I think it's worth documenting @throws for this method.

@loic425 loic425 merged commit 00e363f into Sylius:behat-bridge Dec 9, 2024
6 checks passed
@loic425 loic425 deleted the features/init-behat-bridge branch December 9, 2024 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants