mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-03 23:04:01 +01:00
Fixes composer dependencies: Package phpunit/phpunit-mock-objects is abandoned We cannot support v8 yet because of errors like: Declaration of MailFunc::setUp() must be compatible with PHPUnit\Framework\TestCase::setUp(): void It would require dropping PHP < 7.1 support.
24 lines
472 B
PHP
24 lines
472 B
PHP
<?php
|
|
|
|
class DebugLogger_Plugin extends PHPUnit\Framework\TestCase
|
|
{
|
|
|
|
function setUp()
|
|
{
|
|
include_once __DIR__ . '/../debug_logger.php';
|
|
}
|
|
|
|
/**
|
|
* Plugin object construction test
|
|
*/
|
|
function test_constructor()
|
|
{
|
|
$rcube = rcube::get_instance();
|
|
$plugin = new debug_logger($rcube->plugins);
|
|
|
|
$this->assertInstanceOf('debug_logger', $plugin);
|
|
$this->assertInstanceOf('rcube_plugin', $plugin);
|
|
}
|
|
}
|
|
|