Skip to content

Init Behat Bridge package#149

Merged
loic425 merged 2 commits intoSylius:behat-bridgefrom
loic425:features/init-behat-bridge
Dec 9, 2024
Merged

Init Behat Bridge package#149
loic425 merged 2 commits intoSylius:behat-bridgefrom
loic425:features/init-behat-bridge

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
@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