update tests to work with phpunit version installed by composer

main
msquare 8 years ago
parent 8ae0123635
commit 9b3f6f557a

@ -16,6 +16,7 @@
<whitelist>
<directory>./include/</directory>
<directory>./public/</directory>
<directory>./src/</directory>
</whitelist>
</filter>
<php>

@ -1,9 +1,11 @@
<?php
namespace Engelsystem\Test;
class LogEntriesModelTest extends \PHPUnit_Framework_TestCase
use \PHPUnit\Framework\TestCase;
class LogEntriesModelTest extends TestCase
{
public function create_LogEntry()
{
LogEntry_create('test', 'test');

@ -1,9 +1,11 @@
<?php
namespace Engelsystem\Test;
class RoomModelTest extends \PHPUnit_Framework_TestCase
use \PHPUnit\Framework\TestCase;
class RoomModelTest extends TestCase
{
private $room_id = null;
public function create_Room()
@ -21,7 +23,7 @@ class RoomModelTest extends \PHPUnit_Framework_TestCase
$this->assertNotNull($room);
$this->assertEquals($room['Name'], 'test');
$this->assertNull(Room(-1));
$this->assertNull(Room(- 1));
}
/**

Loading…
Cancel
Save