-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
RunSkippedCest.php
80 lines (72 loc) · 3.94 KB
/
RunSkippedCest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
class RunSkippedCest
{
public function classLevelSkipAnnotationWithMessage(CliGuy $I): void
{
$I->amInPath('tests/data/skip');
$I->executeCommand('run -v --no-ansi unit ClassLevelSkipAnnotationWithMessageCest.php');
$I->seeInShellOutput("S ClassLevelSkipAnnotationWithMessageCest: Method1");
$I->seeInShellOutput("S ClassLevelSkipAnnotationWithMessageCest: Method2");
$I->seeInShellOutput('Skip message');
$I->seeInShellOutput('OK, but incomplete, skipped, or useless tests!');
}
public function classLevelSkipAnnotationWithoutMessage(CliGuy $I): void
{
$I->amInPath('tests/data/skip');
$I->executeCommand('run -v --no-ansi unit ClassLevelSkipAnnotationWithoutMessageCest.php');
$I->seeInShellOutput("S ClassLevelSkipAnnotationWithoutMessageCest: Method1");
$I->seeInShellOutput("S ClassLevelSkipAnnotationWithoutMessageCest: Method2");
$I->seeInShellOutput('OK, but incomplete, skipped, or useless tests!');
}
public function classLevelSkipAttributeWithMessage(CliGuy $I): void
{
$I->amInPath('tests/data/skip');
$I->executeCommand('run -v --no-ansi unit ClassLevelSkipAttributeWithMessageCest.php');
$I->seeInShellOutput("S ClassLevelSkipAttributeWithMessageCest: Method1");
$I->seeInShellOutput("S ClassLevelSkipAttributeWithMessageCest: Method2");
$I->seeInShellOutput('Skip message');
$I->seeInShellOutput('OK, but incomplete, skipped, or useless tests!');
}
public function classLevelSkipAttributeWithoutMessage(CliGuy $I): void
{
$I->amInPath('tests/data/skip');
$I->executeCommand('run -v --no-ansi unit ClassLevelSkipAttributeWithoutMessageCest.php');
$I->seeInShellOutput("S ClassLevelSkipAttributeWithoutMessageCest: Method1");
$I->seeInShellOutput("S ClassLevelSkipAttributeWithoutMessageCest: Method2");
$I->seeInShellOutput('OK, but incomplete, skipped, or useless tests!');
}
public function methodLevelSkipAnnotationWithMessage(CliGuy $I): void
{
$I->amInPath('tests/data/skip');
$I->executeCommand('run -v --no-ansi unit MethodLevelSkipAnnotationWithMessageCest.php');
$I->seeInShellOutput("+ MethodLevelSkipAnnotationWithMessageCest: Method1");
$I->seeInShellOutput("S MethodLevelSkipAnnotationWithMessageCest: Method2");
$I->seeInShellOutput('Skip message');
$I->seeInShellOutput('OK, but incomplete, skipped, or useless tests!');
}
public function methodLevelSkipAnnotationWithoutMessage(CliGuy $I): void
{
$I->amInPath('tests/data/skip');
$I->executeCommand('run -v --no-ansi unit MethodLevelSkipAnnotationWithoutMessageCest.php');
$I->seeInShellOutput("+ MethodLevelSkipAnnotationWithoutMessageCest: Method1");
$I->seeInShellOutput("S MethodLevelSkipAnnotationWithoutMessageCest: Method2");
$I->seeInShellOutput('OK, but incomplete, skipped, or useless tests!');
}
public function methodLevelSkipAttributeWithMessage(CliGuy $I): void
{
$I->amInPath('tests/data/skip');
$I->executeCommand('run -v --no-ansi unit MethodLevelSkipAttributeWithMessageCest.php');
$I->seeInShellOutput("S MethodLevelSkipAttributeWithMessageCest: Method1");
$I->seeInShellOutput("+ MethodLevelSkipAttributeWithMessageCest: Method2");
$I->seeInShellOutput('Skip message');
$I->seeInShellOutput('OK, but incomplete, skipped, or useless tests!');
}
public function methodLevelSkipAttributeWithoutMessage(CliGuy $I): void
{
$I->amInPath('tests/data/skip');
$I->executeCommand('run -v --no-ansi unit MethodLevelSkipAttributeWithoutMessageCest.php');
$I->seeInShellOutput("+ MethodLevelSkipAttributeWithoutMessageCest: Method1");
$I->seeInShellOutput("S MethodLevelSkipAttributeWithoutMessageCest: Method2");
$I->seeInShellOutput('OK, but incomplete, skipped, or useless tests!');
}
}