-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
type/backward-compatibilitySomething will be/is intentionally brokenSomething will be/is intentionally broken
Milestone
Description
The methods that are tagged with @before are called after the setUp() method.
That makes it impossible to use traits for some generic setup code and then use the already existing services from the generic setup to do a specialed setUp, example:
class MyTest extends PHPunit_Framework_TestCase
{
use ContainerSetup;
public function setUp()
{
$this->container->get('..'); // if ContainerSetup has a `@before` hook, its not called here yet.
}
}
jvasseur, metaturso and TomasVotrubaBilge
Metadata
Metadata
Assignees
Labels
type/backward-compatibilitySomething will be/is intentionally brokenSomething will be/is intentionally broken