Skip to content
This repository has been archived by the owner on Apr 12, 2018. It is now read-only.

[@dataProvider] Add a clarification about setUpBeforeClass #86

Merged
merged 1 commit into from
Feb 22, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions branches/3.7/en/writing-tests-for-phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,11 @@ class CsvFileIterator implements Iterator {
<indexterm><primary>@dataProvider</primary></indexterm>
<indexterm><primary>@depends</primary></indexterm>

All data providers are executed before the first call to the
<literal>setUp</literal> function. Because of that you can't access
any variables you create there from within a data provider.
All data providers are executed before both the call to the <literal>setUpBeforeClass</literal>
static method and the first call to the <literal>setUp</literal> method.
Because of that you can't access any variables you create there from
within a data provider. This is required in order for phpunit to be able
to compute the total number of tests.
</para>
</note>
</section>
Expand Down