xp-framework/unittest

Fix origin for `DidNotCatch`

Closed this issue · 2 comments

The origin here should be the test case, not the place in this library:

image

Reproduce code:

use lang\IllegalAccessException;
use unittest\{Expect, Test};

class Issue47Test {

  #[Test, Expect(IllegalAccessException::class)]
  public function does_not_throw() {
    // NOOP
  }
}

Output now:

image