@@ -14,7 +14,7 @@ class AssertService
1414 /**
1515 * Creates a benchmark result assertion service.
1616 *
17- * @param \DragonCode\Benchmark\Data\ ResultData[] $result
17+ * @param ResultData[] $result
1818 */
1919 public function __construct (
2020 protected array $ result
@@ -25,7 +25,6 @@ public function __construct(
2525 *
2626 * @param float|null $from Start value is specified in milliseconds.
2727 * @param float|null $till End value is specified in milliseconds.
28- *
2928 * @return $this
3029 */
3130 public function toBeMinTime (?float $ from = null , ?float $ till = null ): static
@@ -38,7 +37,6 @@ public function toBeMinTime(?float $from = null, ?float $till = null): static
3837 *
3938 * @param float|null $from Start value is specified in milliseconds.
4039 * @param float|null $till End value is specified in milliseconds.
41- *
4240 * @return $this
4341 */
4442 public function toBeMaxTime (?float $ from = null , ?float $ till = null ): static
@@ -51,7 +49,6 @@ public function toBeMaxTime(?float $from = null, ?float $till = null): static
5149 *
5250 * @param float|null $from Start value is specified in milliseconds.
5351 * @param float|null $till End value is specified in milliseconds.
54- *
5552 * @return $this
5653 */
5754 public function toBeAvgTime (?float $ from = null , ?float $ till = null ): static
@@ -64,7 +61,6 @@ public function toBeAvgTime(?float $from = null, ?float $till = null): static
6461 *
6562 * @param float|null $from Start value is specified in milliseconds.
6663 * @param float|null $till End value is specified in milliseconds.
67- *
6864 * @return $this
6965 */
7066 public function toBeTotalTime (?float $ from = null , ?float $ till = null ): static
@@ -77,7 +73,6 @@ public function toBeTotalTime(?float $from = null, ?float $till = null): static
7773 *
7874 * @param float|null $from Start value is specified in bytes.
7975 * @param float|null $till End value is specified in bytes.
80- *
8176 * @return $this
8277 */
8378 public function toBeMinMemory (?float $ from = null , ?float $ till = null ): static
@@ -90,7 +85,6 @@ public function toBeMinMemory(?float $from = null, ?float $till = null): static
9085 *
9186 * @param float|null $from Start value is specified in bytes.
9287 * @param float|null $till End value is specified in bytes.
93- *
9488 * @return $this
9589 */
9690 public function toBeMaxMemory (?float $ from = null , ?float $ till = null ): static
@@ -103,7 +97,6 @@ public function toBeMaxMemory(?float $from = null, ?float $till = null): static
10397 *
10498 * @param float|null $from Start value is specified in bytes.
10599 * @param float|null $till End value is specified in bytes.
106- *
107100 * @return $this
108101 */
109102 public function toBeAvgMemory (?float $ from = null , ?float $ till = null ): static
@@ -116,7 +109,6 @@ public function toBeAvgMemory(?float $from = null, ?float $till = null): static
116109 *
117110 * @param float|null $from Start value is specified in bytes.
118111 * @param float|null $till End value is specified in bytes.
119- *
120112 * @return $this
121113 */
122114 public function toBeTotalMemory (?float $ from = null , ?float $ till = null ): static
@@ -129,7 +121,6 @@ public function toBeTotalMemory(?float $from = null, ?float $till = null): stati
129121 *
130122 * @param float|null $from Start value is specified in percentages.
131123 * @param float|null $till End value is specified in percentages.
132- *
133124 * @return $this
134125 */
135126 public function toBeDeviationTime (?float $ from = null , ?float $ till = null ): static
@@ -148,7 +139,6 @@ public function toBeDeviationTime(?float $from = null, ?float $till = null): sta
148139 *
149140 * @param float|null $from Start value is specified in percentages.
150141 * @param float|null $till End value is specified in percentages.
151- *
152142 * @return $this
153143 */
154144 public function toBeDeviationMemory (?float $ from = null , ?float $ till = null ): static
@@ -169,7 +159,6 @@ public function toBeDeviationMemory(?float $from = null, ?float $till = null): s
169159 * @param float|null $till The end value of the range.
170160 * @param callable $callback Callback to extract the value from a result item.
171161 * @param string $name The name of the metric being checked.
172- *
173162 * @return $this
174163 */
175164 protected function assertRange (?float $ from , ?float $ till , Closure $ callback , string $ name ): static
0 commit comments