xp-framework/xp-framework — Issue #100: Only one @beforeClass method executed
Author: thekid
Created: 2012-01-02 08:55:44+00:00
State: open
Labels: bug

Given the following TestCase class:

```php

assertEquals(
array('buildRomeInOneDay', 'findTheQuestionTo42'),
self::$initialized
);
}
}
?>
```

The second `@beforeClass` method is not executed, which can be clearly seen by the assertion failing:

```
unittest.AssertionFailedError (notequal) { expected: [array:[
0 => "buildRomeInOneDay"
1 => "findTheQuestionTo42"
]] but was: [array:[
0 => "buildRomeInOneDay"
]] }
```

Because of the fact that we're using annotations to decorate before-class methods, and thus allow for any amount of these methods, I'd say this is a bug.