Browse Source

Update PHPUnit tests to use namespaces

Alan Hardman 2 years ago
parent
commit
c18b4853b5
2 changed files with 8 additions and 2 deletions
  1. 4 1
      tests/pluginTest.php
  2. 4 1
      tests/stringTest.php

+ 4 - 1
tests/pluginTest.php

@@ -1,5 +1,8 @@
 <?php
-class PluginTest extends PHPUnit_Framework_TestCase {
+
+use PHPUnit\Framework\TestCase;
+
+class PluginTest extends TestCase {
 
 	public function testHook() {
 		$helper = \Helper\Plugin::instance();

+ 4 - 1
tests/stringTest.php

@@ -1,5 +1,8 @@
 <?php
-class StringTest extends PHPUnit_Framework_TestCase {
+
+use PHPUnit\Framework\TestCase;
+
+class StringTest extends TestCase {
 
 	public function testRot8() {
 		$helper = \Helper\Security::instance();