mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-17 07:48:41 +00:00
upgrade phpunit
This commit is contained in:
parent
80176a5f3e
commit
3c55705373
|
|
@ -38,6 +38,7 @@ use phpOMS\Utils\TestUtils;
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
|
#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Profile\Controller\ApiController::class)]
|
||||||
final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
protected ApplicationAbstract $app;
|
protected ApplicationAbstract $app;
|
||||||
|
|
@ -91,10 +92,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
TestUtils::setMember($this->module, 'app', $this->app);
|
TestUtils::setMember($this->module, 'app', $this->app);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Controller\ApiController
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testApiProfileCreate() : void
|
public function testApiProfileCreate() : void
|
||||||
{
|
{
|
||||||
\Modules\Admin\tests\Helper::createAccounts(1);
|
\Modules\Admin\tests\Helper::createAccounts(1);
|
||||||
|
|
@ -110,10 +108,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
self::assertGreaterThan(0, $response->getDataArray('')['response'][0]->id);
|
self::assertGreaterThan(0, $response->getDataArray('')['response'][0]->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Controller\ApiController
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testApiProfileTempLoginCreate() : void
|
public function testApiProfileTempLoginCreate() : void
|
||||||
{
|
{
|
||||||
$response = new HttpResponse();
|
$response = new HttpResponse();
|
||||||
|
|
@ -125,10 +120,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
self::assertGreaterThan(31, \strlen($response->getDataArray('')['response']));
|
self::assertGreaterThan(31, \strlen($response->getDataArray('')['response']));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Controller\ApiController
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testApiProfileImageSet() : void
|
public function testApiProfileImageSet() : void
|
||||||
{
|
{
|
||||||
\copy(__DIR__ . '/icon.png', __DIR__ . '/temp_icon.png');
|
\copy(__DIR__ . '/icon.png', __DIR__ . '/temp_icon.png');
|
||||||
|
|
@ -154,10 +146,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
self::assertEquals('Profile Logo', $image->name);
|
self::assertEquals('Profile Logo', $image->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Controller\ApiController
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testApiProfileImageSetInvalid() : void
|
public function testApiProfileImageSetInvalid() : void
|
||||||
{
|
{
|
||||||
$response = new HttpResponse();
|
$response = new HttpResponse();
|
||||||
|
|
@ -167,10 +156,6 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
self::assertEquals(RequestStatusCode::R_400, $response->header->status);
|
self::assertEquals(RequestStatusCode::R_400, $response->header->status);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @covers \Modules\Profile\Controller\ApiController
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
/*
|
/*
|
||||||
public function testApiContactElementCreate() : void
|
public function testApiContactElementCreate() : void
|
||||||
{
|
{
|
||||||
|
|
@ -187,11 +172,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
/**
|
|
||||||
* @covers \Modules\Profile\Controller\ApiController
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testApiContactElementCreateInvalidData() : void
|
public function testApiContactElementCreateInvalidData() : void
|
||||||
{
|
{
|
||||||
$response = new HttpResponse();
|
$response = new HttpResponse();
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ use Modules\Profile\Models\ContactElement;
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
|
#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Profile\Models\ContactElement::class)]
|
||||||
final class ContactElementTest extends \PHPUnit\Framework\TestCase
|
final class ContactElementTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
private ContactElement $contact;
|
private ContactElement $contact;
|
||||||
|
|
@ -31,10 +32,7 @@ final class ContactElementTest extends \PHPUnit\Framework\TestCase
|
||||||
$this->contact = new ContactElement();
|
$this->contact = new ContactElement();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\ContactElement
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
{
|
{
|
||||||
self::assertEquals(0, $this->contact->id);
|
self::assertEquals(0, $this->contact->id);
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ use Modules\Profile\Models\Contact;
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
|
#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Profile\Models\Contact::class)]
|
||||||
final class ContactTest extends \PHPUnit\Framework\TestCase
|
final class ContactTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
private Contact $contact;
|
private Contact $contact;
|
||||||
|
|
@ -31,10 +32,7 @@ final class ContactTest extends \PHPUnit\Framework\TestCase
|
||||||
$this->contact = new Contact();
|
$this->contact = new Contact();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\Contact
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
{
|
{
|
||||||
self::assertEquals(0, $this->contact->id);
|
self::assertEquals(0, $this->contact->id);
|
||||||
|
|
|
||||||
|
|
@ -19,31 +19,23 @@ use Modules\Profile\Models\NullContactElement;
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
|
#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Profile\Models\NullContactElement::class)]
|
||||||
final class NullContactElementTest extends \PHPUnit\Framework\TestCase
|
final class NullContactElementTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\NullContactElement
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testNull() : void
|
public function testNull() : void
|
||||||
{
|
{
|
||||||
self::assertInstanceOf('\Modules\Profile\Models\ContactElement', new NullContactElement());
|
self::assertInstanceOf('\Modules\Profile\Models\ContactElement', new NullContactElement());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\NullContactElement
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testId() : void
|
public function testId() : void
|
||||||
{
|
{
|
||||||
$null = new NullContactElement(2);
|
$null = new NullContactElement(2);
|
||||||
self::assertEquals(2, $null->id);
|
self::assertEquals(2, $null->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\NullContactElement
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testJsonSerialize() : void
|
public function testJsonSerialize() : void
|
||||||
{
|
{
|
||||||
$null = new NullContactElement(2);
|
$null = new NullContactElement(2);
|
||||||
|
|
|
||||||
|
|
@ -19,31 +19,23 @@ use Modules\Profile\Models\NullContact;
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
|
#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Profile\Models\NullContact::class)]
|
||||||
final class NullContactTest extends \PHPUnit\Framework\TestCase
|
final class NullContactTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\NullContact
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testNull() : void
|
public function testNull() : void
|
||||||
{
|
{
|
||||||
self::assertInstanceOf('\Modules\Profile\Models\Contact', new NullContact());
|
self::assertInstanceOf('\Modules\Profile\Models\Contact', new NullContact());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\NullContact
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testId() : void
|
public function testId() : void
|
||||||
{
|
{
|
||||||
$null = new NullContact(2);
|
$null = new NullContact(2);
|
||||||
self::assertEquals(2, $null->id);
|
self::assertEquals(2, $null->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\NullContact
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testJsonSerialize() : void
|
public function testJsonSerialize() : void
|
||||||
{
|
{
|
||||||
$null = new NullContact(2);
|
$null = new NullContact(2);
|
||||||
|
|
|
||||||
|
|
@ -19,31 +19,23 @@ use Modules\Profile\Models\NullProfile;
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
|
#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Profile\Models\NullProfile::class)]
|
||||||
final class NullProfileTest extends \PHPUnit\Framework\TestCase
|
final class NullProfileTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\NullProfile
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testNull() : void
|
public function testNull() : void
|
||||||
{
|
{
|
||||||
self::assertInstanceOf('\Modules\Profile\Models\Profile', new NullProfile());
|
self::assertInstanceOf('\Modules\Profile\Models\Profile', new NullProfile());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\NullProfile
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testId() : void
|
public function testId() : void
|
||||||
{
|
{
|
||||||
$null = new NullProfile(2);
|
$null = new NullProfile(2);
|
||||||
self::assertEquals(2, $null->id);
|
self::assertEquals(2, $null->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\NullProfile
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testJsonSerialize() : void
|
public function testJsonSerialize() : void
|
||||||
{
|
{
|
||||||
$null = new NullProfile(2);
|
$null = new NullProfile(2);
|
||||||
|
|
|
||||||
|
|
@ -23,12 +23,10 @@ use Modules\Profile\Models\ProfileMapper;
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
|
#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Profile\Models\ProfileMapper::class)]
|
||||||
final class ProfileMapperTest extends \PHPUnit\Framework\TestCase
|
final class ProfileMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\ProfileMapper
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testCRUD() : void
|
public function testCRUD() : void
|
||||||
{
|
{
|
||||||
$media = new Media();
|
$media = new Media();
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ use Modules\Profile\Models\SexType;
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
|
#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Profile\Models\Profile::class)]
|
||||||
final class ProfileTest extends \PHPUnit\Framework\TestCase
|
final class ProfileTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
private Profile $profile;
|
private Profile $profile;
|
||||||
|
|
@ -35,10 +36,7 @@ final class ProfileTest extends \PHPUnit\Framework\TestCase
|
||||||
$this->profile = new Profile();
|
$this->profile = new Profile();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\Profile
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
{
|
{
|
||||||
self::assertEquals(0, $this->profile->id);
|
self::assertEquals(0, $this->profile->id);
|
||||||
|
|
@ -49,20 +47,14 @@ final class ProfileTest extends \PHPUnit\Framework\TestCase
|
||||||
self::assertNull($this->profile->birthday);
|
self::assertNull($this->profile->birthday);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\Profile
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testGenderInputOutput() : void
|
public function testGenderInputOutput() : void
|
||||||
{
|
{
|
||||||
$this->profile->setGender(GenderType::FEMALE);
|
$this->profile->setGender(GenderType::FEMALE);
|
||||||
self::assertEquals(GenderType::FEMALE, $this->profile->getGender());
|
self::assertEquals(GenderType::FEMALE, $this->profile->getGender());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\Profile
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testInvalidGender() : void
|
public function testInvalidGender() : void
|
||||||
{
|
{
|
||||||
$this->expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
$this->expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
||||||
|
|
@ -70,20 +62,14 @@ final class ProfileTest extends \PHPUnit\Framework\TestCase
|
||||||
$this->profile->setGender(9999);
|
$this->profile->setGender(9999);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\Profile
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testSexInputOutput() : void
|
public function testSexInputOutput() : void
|
||||||
{
|
{
|
||||||
$this->profile->setSex(SexType::FEMALE);
|
$this->profile->setSex(SexType::FEMALE);
|
||||||
self::assertEquals(SexType::FEMALE, $this->profile->getSex());
|
self::assertEquals(SexType::FEMALE, $this->profile->getSex());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\Profile
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testInvalidSex() : void
|
public function testInvalidSex() : void
|
||||||
{
|
{
|
||||||
$this->expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
$this->expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
||||||
|
|
@ -91,30 +77,21 @@ final class ProfileTest extends \PHPUnit\Framework\TestCase
|
||||||
$this->profile->setSex(9999);
|
$this->profile->setSex(9999);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\Profile
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testBirthdayInputOutput() : void
|
public function testBirthdayInputOutput() : void
|
||||||
{
|
{
|
||||||
$this->profile->birthday = ($date = new \DateTime('now'));
|
$this->profile->birthday = ($date = new \DateTime('now'));
|
||||||
self::assertEquals($date, $this->profile->birthday);
|
self::assertEquals($date, $this->profile->birthday);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\Profile
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testImageInputOutput() : void
|
public function testImageInputOutput() : void
|
||||||
{
|
{
|
||||||
$this->profile->image = new NullMedia(1);
|
$this->profile->image = new NullMedia(1);
|
||||||
self::assertEquals(1, $this->profile->image->id);
|
self::assertEquals(1, $this->profile->image->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\Profile
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testAccountInputOutput() : void
|
public function testAccountInputOutput() : void
|
||||||
{
|
{
|
||||||
$this->profile->account = new NullAccount(1);
|
$this->profile->account = new NullAccount(1);
|
||||||
|
|
@ -124,10 +101,7 @@ final class ProfileTest extends \PHPUnit\Framework\TestCase
|
||||||
self::assertEquals(1, $profile->account->id);
|
self::assertEquals(1, $profile->account->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
* @covers \Modules\Profile\Models\Profile
|
|
||||||
* @group module
|
|
||||||
*/
|
|
||||||
public function testSerialize() : void
|
public function testSerialize() : void
|
||||||
{
|
{
|
||||||
$this->profile->setGender(GenderType::FEMALE);
|
$this->profile->setGender(GenderType::FEMALE);
|
||||||
|
|
|
||||||
|
|
@ -1,31 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="Bootstrap.php" colors="true" columns="120" stopOnError="true" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" beStrictAboutTestsThatDoNotTestAnything="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="Bootstrap.php" colors="true" columns="120" stopOnError="true" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" beStrictAboutTestsThatDoNotTestAnything="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd" cacheDirectory=".phpunit.cache">
|
||||||
<coverage includeUncoveredFiles="true" processUncoveredFiles="false">
|
<coverage includeUncoveredFiles="true">
|
||||||
<include>
|
|
||||||
<directory suffix=".php">../</directory>
|
|
||||||
</include>
|
|
||||||
<exclude>
|
|
||||||
<directory>../vendor*</directory>
|
|
||||||
<directory>../MainRepository*</directory>
|
|
||||||
<directory>../Karaka*</directory>
|
|
||||||
<directory>../Admin/Install/Application*</directory>
|
|
||||||
<directory>../phpOMS*</directory>
|
|
||||||
<directory>../tests*</directory>
|
|
||||||
<directory>../*/tests*</directory>
|
|
||||||
<directory>../**/tests*</directory>
|
|
||||||
<directory>*/tests*</directory>
|
|
||||||
<directory suffix="tpl.php">../*</directory>
|
|
||||||
<directory suffix="lang.php">../*</directory>
|
|
||||||
<directory suffix="Test.php">../*</directory>
|
|
||||||
<directory suffix="Routes.php">../*</directory>
|
|
||||||
<directory suffix="Hooks.php">../*</directory>
|
|
||||||
<directory>../**/test*</directory>
|
|
||||||
<directory>../**/Theme*</directory>
|
|
||||||
<directory>../**/Admin/Routes*</directory>
|
|
||||||
<directory>../**/Admin/Hooks*</directory>
|
|
||||||
<directory>../**/Admin/Install*</directory>
|
|
||||||
<directory>../Media/Files*</directory>
|
|
||||||
</exclude>
|
|
||||||
<report>
|
<report>
|
||||||
<clover outputFile="coverage.xml"/>
|
<clover outputFile="coverage.xml"/>
|
||||||
<html outputDirectory="../tests" lowUpperBound="75" highLowerBound="95"/>
|
<html outputDirectory="../tests" lowUpperBound="75" highLowerBound="95"/>
|
||||||
|
|
@ -56,4 +31,31 @@
|
||||||
<const name="WEB_SERVER_DOCROOT" value="./Karaka"/>
|
<const name="WEB_SERVER_DOCROOT" value="./Karaka"/>
|
||||||
<const name="RESET" value="1"/>
|
<const name="RESET" value="1"/>
|
||||||
</php>
|
</php>
|
||||||
|
<source>
|
||||||
|
<include>
|
||||||
|
<directory suffix=".php">../</directory>
|
||||||
|
</include>
|
||||||
|
<exclude>
|
||||||
|
<directory>../vendor*</directory>
|
||||||
|
<directory>../MainRepository*</directory>
|
||||||
|
<directory>../Karaka*</directory>
|
||||||
|
<directory>../Admin/Install/Application*</directory>
|
||||||
|
<directory>../phpOMS*</directory>
|
||||||
|
<directory>../tests*</directory>
|
||||||
|
<directory>../*/tests*</directory>
|
||||||
|
<directory>../**/tests*</directory>
|
||||||
|
<directory>*/tests*</directory>
|
||||||
|
<directory suffix="tpl.php">../*</directory>
|
||||||
|
<directory suffix="lang.php">../*</directory>
|
||||||
|
<directory suffix="Test.php">../*</directory>
|
||||||
|
<directory suffix="Routes.php">../*</directory>
|
||||||
|
<directory suffix="Hooks.php">../*</directory>
|
||||||
|
<directory>../**/test*</directory>
|
||||||
|
<directory>../**/Theme*</directory>
|
||||||
|
<directory>../**/Admin/Routes*</directory>
|
||||||
|
<directory>../**/Admin/Hooks*</directory>
|
||||||
|
<directory>../**/Admin/Install*</directory>
|
||||||
|
<directory>../Media/Files*</directory>
|
||||||
|
</exclude>
|
||||||
|
</source>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user