-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from MacPaw/feat/add-documentation
feat: update Ci process add php 8.3 8.4
- Loading branch information
Showing
16 changed files
with
368 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,8 @@ jobs: | |
matrix: | ||
php: | ||
- '8.2' | ||
- '8.3' | ||
- '8.4' | ||
coverage: ['none'] | ||
symfony-versions: | ||
- '6.4.*' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
"name": "Yozhef Hisem", | ||
"email": "[email protected]", | ||
"homepage": "https://macpaw.com/", | ||
"role": "Software Engineer" | ||
"role": "Staff Software Engineer" | ||
} | ||
], | ||
"license": "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
### Check Any Value in Redis | ||
|
||
#### Step Definition: | ||
|
||
This step checks if any value exists in Redis under a specified key. | ||
|
||
#### Gherkin Example: | ||
|
||
```gherkin | ||
When I see in redis any value by key "testKey" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
### Check an Array in Redis | ||
|
||
#### Step Definition: | ||
|
||
This step checks if the data stored in Redis as a hash matches the expected JSON structure. | ||
|
||
#### Gherkin Example: | ||
|
||
```gherkin | ||
Then I see in redis array by key "arrayKey": | ||
""" | ||
{ | ||
"key1": "value1", | ||
"key2": "value2" | ||
} | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
### Check the Absence of a Value in Redis | ||
|
||
#### Step Definition: | ||
|
||
This step checks that no exists under a specific key in Redis. | ||
|
||
#### Gherkin Example: | ||
|
||
```gherkin | ||
When I don't see in redis key "testKey" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
### Check a Serialized Value in Redis | ||
|
||
#### Step Definition: | ||
|
||
This step checks if a serialized value in Redis matches the expected value. It unserializes the value before comparing. | ||
|
||
#### Gherkin Example: | ||
|
||
```gherkin | ||
When I see in redis serialized value "testSerializedValue" by key "serializedKey" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
### Check a Value in Redis | ||
|
||
#### Step Definition: | ||
|
||
This step checks if a specific value exists in Redis under the specified key. If the value is missing or does not match, the step will throw an error. | ||
|
||
#### Gherkin Example: | ||
|
||
```gherkin | ||
When I see in redis value "testValue" by key "testKey" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## Redis Database Cleanup | ||
|
||
### Before Each Scenario | ||
|
||
The Redis database is automatically flushed before each scenario using the `@BeforeScenario` hook. This ensures that each scenario starts with a clean database, preventing test pollution from previous scenarios. | ||
|
||
#### Example Usage: | ||
|
||
There is no specific Gherkin step required; this happens automatically before each test scenario. | ||
|
||
### After Each Feature | ||
|
||
After all scenarios in a feature are completed, the system performs garbage collection to free up memory. | ||
|
||
#### Example Usage: | ||
|
||
There is no specific Gherkin step required; this happens automatically after the last test in a feature. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
### Save a Serialized Value to Redis | ||
|
||
#### Step Definition: | ||
|
||
This step serializes a value and saves it in Redis under the given key. | ||
|
||
#### Gherkin Example: | ||
|
||
```gherkin | ||
When I save serialized value "testSerializedValue" to redis by "serializedKey" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
### Save a String Value to Redis | ||
|
||
#### Step Definition: | ||
|
||
This step saves a string value in Redis with a specified key. | ||
|
||
#### Gherkin Example: | ||
|
||
```gherkin | ||
When I save string value "testValue" to redis by "testKey" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Handling Missing Fixtures | ||
If the specified fixture file is not found, an exception is thrown, indicating that the fixture is missing. Make sure the fixtures exist in the correct directory specified by data_fixtures_path. | ||
|
||
Example Error Message: | ||
```gherkin | ||
The "orders" redis fixture not found. | ||
``` |
Oops, something went wrong.