Skip to content

Commit 5acca7d

Browse files
authored
Add assertion count into README test example
Add assertion to `phpunit` count which will prevent marking test as "risky".
1 parent 7934efe commit 5acca7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ class ContainerServiceDefinitionsTest extends WebTestCase
127127
public function validateServiceDefinitions()
128128
{
129129
$kernel = static::createKernel();
130-
131130
$kernel->boot();
131+
132+
// Add assertion to phpunit count which will prevent marking test as "risky"
133+
$this->addToAssertionCount(1);
132134
}
133135
}
134136
```

0 commit comments

Comments
 (0)