Skip to content

Commit

Permalink
Updated test assets because of fix of contextparameter for EXTENDED p…
Browse files Browse the repository at this point in the history
…rofile
  • Loading branch information
HorstOeko committed Aug 18, 2023
1 parent 7a8ce2b commit bd4a1d8
Show file tree
Hide file tree
Showing 4 changed files with 894 additions and 872 deletions.
22 changes: 22 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,28 @@ public function expectNoticeOrWarning(): void
}
}

/**
* Use this with PHPunit 10
*
* @param \Closure $run
* @return void
*/
public function expectNoticeOrWarningExt(\Closure $run): void
{
set_error_handler(
static function (int $errno, string $errstr): never {
throw new \Exception($errstr, $errno);
},
E_ALL
);

$this->expectException(\Exception::class);

call_user_func($run);

restore_error_handler();
}

/**
* Access to private properties
*
Expand Down
Binary file modified tests/assets/reader-order-x-extended.pdf
Binary file not shown.
Loading

0 comments on commit bd4a1d8

Please sign in to comment.