fix phpunit config

This commit is contained in:
msquare 2016-10-09 09:40:11 +02:00
parent 1d4811cca5
commit d59b1c8812
4 changed files with 28 additions and 18 deletions

24
phpunit.xml Normal file
View File

@ -0,0 +1,24 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.5/phpunit.xsd"
backupGlobals="false"
bootstrap="./includes/engelsystem_provider.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false">
<testsuites>
<testsuite name="Models">
<directory>./test/model/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>./include/</directory>
<directory>./public/</directory>
</whitelist>
</filter>
<php>
<const name="PHPUNIT_TESTSUITE" value="true" />
</php>
</phpunit>

View File

@ -1,6 +1,6 @@
<?php
class LogEntries_model_test extends PHPUnit_Framework_TestCase {
class LogEntriesModelTest extends PHPUnit_Framework_TestCase {
public function create_LogEntry() {
LogEntry_create('test', 'test');

View File

@ -1,6 +1,6 @@
<?php
class Room_model_test extends PHPUnit_Framework_TestCase {
class RoomModelTest extends PHPUnit_Framework_TestCase {
private $room_id = null;

View File

@ -1,14 +0,0 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.5/phpunit.xsd"
bootstrap="../includes/engelsystem_provider.php" colors="true"
convertErrorsToExceptions="true" convertNoticesToExceptions="true"
convertWarningsToExceptions="true" forceCoversAnnotation="false">
<testsuites>
<testsuite name="Models">
<directory>model/*</directory>
</testsuite>
</testsuites>
<php>
<const name="PHPUNIT_TESTSUITE" value="true" />
</php>
</phpunit>