mirror of
https://github.com/composer/composer
synced 2025-05-10 00:53:06 +00:00
Build tweaks
This commit is contained in:
parent
0a4df6c3b4
commit
4e1f8cf89d
7 changed files with 68 additions and 45 deletions
|
@ -46,7 +46,11 @@ class ErrorHandlerTest extends TestCase
|
|||
*/
|
||||
public function testErrorHandlerCaptureWarning()
|
||||
{
|
||||
$this->setExpectedException('\ErrorException', 'array_merge');
|
||||
if (PHP_VERSION_ID >= 80000) {
|
||||
$this->setExpectedException('TypeError', 'array_merge');
|
||||
} else {
|
||||
$this->setExpectedException('ErrorException', 'array_merge');
|
||||
}
|
||||
|
||||
array_merge(array(), 'string');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue