mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-04 07:14:02 +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
500 B
PHP
24 lines
500 B
PHP
<?php
|
|
|
|
class ExampleAddressbook_Plugin extends PHPUnit\Framework\TestCase
|
|
{
|
|
|
|
function setUp()
|
|
{
|
|
include_once __DIR__ . '/../example_addressbook.php';
|
|
}
|
|
|
|
/**
|
|
* Plugin object construction test
|
|
*/
|
|
function test_constructor()
|
|
{
|
|
$rcube = rcube::get_instance();
|
|
$plugin = new example_addressbook($rcube->plugins);
|
|
|
|
$this->assertInstanceOf('example_addressbook', $plugin);
|
|
$this->assertInstanceOf('rcube_plugin', $plugin);
|
|
}
|
|
}
|
|
|