| @@ 306-314 (lines=9) @@ | ||
| 303 | * |
|
| 304 | * @return Test |
|
| 305 | */ |
|
| 306 | public function setPassed(): Test |
|
| 307 | { |
|
| 308 | $this->passed = 1; |
|
| 309 | $this->failed = 0; |
|
| 310 | $this->errored = 0; |
|
| 311 | $this->skipped = 0; |
|
| 312 | ||
| 313 | return $this; |
|
| 314 | } |
|
| 315 | ||
| 316 | /** |
|
| 317 | * Return 1 if test is passed. |
|
| @@ 331-339 (lines=9) @@ | ||
| 328 | * |
|
| 329 | * @return Test |
|
| 330 | */ |
|
| 331 | public function setFailed(): Test |
|
| 332 | { |
|
| 333 | $this->passed = 0; |
|
| 334 | $this->failed = 1; |
|
| 335 | $this->errored = 0; |
|
| 336 | $this->skipped = 0; |
|
| 337 | ||
| 338 | return $this; |
|
| 339 | } |
|
| 340 | ||
| 341 | /** |
|
| 342 | * Return 1 if test is failed. |
|
| @@ 356-364 (lines=9) @@ | ||
| 353 | * |
|
| 354 | * @return Test |
|
| 355 | */ |
|
| 356 | public function setErrored(): Test |
|
| 357 | { |
|
| 358 | $this->passed = 0; |
|
| 359 | $this->failed = 0; |
|
| 360 | $this->errored = 1; |
|
| 361 | $this->skipped = 0; |
|
| 362 | ||
| 363 | return $this; |
|
| 364 | } |
|
| 365 | ||
| 366 | /** |
|
| 367 | * Return 1 if test is errored. |
|
| @@ 381-389 (lines=9) @@ | ||
| 378 | * |
|
| 379 | * @return Test |
|
| 380 | */ |
|
| 381 | public function setSkipped(): Test |
|
| 382 | { |
|
| 383 | $this->passed = 0; |
|
| 384 | $this->failed = 0; |
|
| 385 | $this->errored = 0; |
|
| 386 | $this->skipped = 1; |
|
| 387 | ||
| 388 | return $this; |
|
| 389 | } |
|
| 390 | ||
| 391 | /** |
|
| 392 | * Return 1 if test is skipped. |
|