Clean up most of b/c for phpunit4
We don't support phpunit4 anymore: https://w.wiki/9UT Change-Id: Id7ad0e139f454becfac87bedca75b271250d387c
This commit is contained in:
@@ -11,7 +11,6 @@ use \FontRepoCompiler;
|
|||||||
* @author Thiemo Kreuz
|
* @author Thiemo Kreuz
|
||||||
*/
|
*/
|
||||||
class FontRepoCompilerTest extends \PHPUnit\Framework\TestCase {
|
class FontRepoCompilerTest extends \PHPUnit\Framework\TestCase {
|
||||||
use \PHPUnit4And6Compat;
|
|
||||||
|
|
||||||
public function testGetLanguages() {
|
public function testGetLanguages() {
|
||||||
$instance = new FontRepoCompiler( '', '' );
|
$instance = new FontRepoCompiler( '', '' );
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ use ResourceLoaderULSJsonMessageModule;
|
|||||||
* @author Thiemo Kreuz
|
* @author Thiemo Kreuz
|
||||||
*/
|
*/
|
||||||
class ResourceLoaderULSJsonMessageModuleTest extends \PHPUnit\Framework\TestCase {
|
class ResourceLoaderULSJsonMessageModuleTest extends \PHPUnit\Framework\TestCase {
|
||||||
use \PHPUnit4And6Compat;
|
|
||||||
|
|
||||||
public function testAllReturnValues() {
|
public function testAllReturnValues() {
|
||||||
$instance = new ResourceLoaderULSJsonMessageModule();
|
$instance = new ResourceLoaderULSJsonMessageModule();
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ use ResourceLoaderULSModule;
|
|||||||
* @author Thiemo Kreuz
|
* @author Thiemo Kreuz
|
||||||
*/
|
*/
|
||||||
class ResourceLoaderULSModuleTest extends \PHPUnit\Framework\TestCase {
|
class ResourceLoaderULSModuleTest extends \PHPUnit\Framework\TestCase {
|
||||||
use \PHPUnit4And6Compat;
|
|
||||||
|
|
||||||
public function testAllReturnValues() {
|
public function testAllReturnValues() {
|
||||||
$instance = new ResourceLoaderULSModule();
|
$instance = new ResourceLoaderULSModule();
|
||||||
|
|||||||
@@ -11,19 +11,18 @@ use ULSJsonMessageLoader;
|
|||||||
* @author Thiemo Kreuz
|
* @author Thiemo Kreuz
|
||||||
*/
|
*/
|
||||||
class ULSJsonMessageLoaderTest extends \PHPUnit\Framework\TestCase {
|
class ULSJsonMessageLoaderTest extends \PHPUnit\Framework\TestCase {
|
||||||
use \PHPUnit4And6Compat;
|
|
||||||
|
|
||||||
public function testGetFilenamesWithBadInput() {
|
public function testGetFilenamesWithBadInput() {
|
||||||
$instance = new ULSJsonMessageLoader();
|
$instance = new ULSJsonMessageLoader();
|
||||||
|
|
||||||
$this->setExpectedException( \Exception::class );
|
$this->expectException( \Exception::class );
|
||||||
$instance->getFilenames( null );
|
$instance->getFilenames( null );
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetMessagesWithBadInput() {
|
public function testGetMessagesWithBadInput() {
|
||||||
$instance = new ULSJsonMessageLoader();
|
$instance = new ULSJsonMessageLoader();
|
||||||
|
|
||||||
$this->setExpectedException( \Exception::class );
|
$this->expectException( \Exception::class );
|
||||||
$instance->getMessages( null );
|
$instance->getMessages( null );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user