You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ru/docs/data-providers.md
-6Lines changed: 0 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,6 @@
7
7
Самый простой способ — указать данные прямо над методом:
8
8
9
9
```php
10
-
use Testo\Attribute\Test;
11
-
use Testo\Attribute\DataSet;
12
-
13
10
#[Test]
14
11
#[DataSet([1, 1, 2])]
15
12
#[DataSet([2, 3, 5])]
@@ -38,9 +35,6 @@ public function testSum(int $a, int $b, int $expected): void { ... }
38
35
Для большого количества данных или динамической генерации используйте `DataProvider`. Он принимает метод или вызываемый объект, который возвращает тестовые данные:
39
36
40
37
```php
41
-
use Testo\Attribute\Test;
42
-
use Testo\Sample\DataProvider;
43
-
44
38
#[Test]
45
39
#[DataProvider('userDataProvider')]
46
40
public function testUserValidation(string $email, bool $expected): void
0 commit comments