File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
+
2
3
namespace UnityWebPortal \lib ;
4
+
3
5
use PHPUnit \Framework \TestCase ;
4
6
use PHPUnit \Framework \Attributes \DataProvider ;
5
- class UnitySiteTest extends TestCase {
6
- public static function ssh_key_provider ()
7
+
8
+ class UnitySiteTest extends TestCase
9
+ {
10
+ public static function SSHKeyProvider ()
7
11
{
8
12
return [
9
13
[false , "" ],
@@ -17,8 +21,9 @@ public static function ssh_key_provider()
17
21
];
18
22
}
19
23
20
- #[DataProvider("ssh_key_provider " )]
21
- public function testTestValidSSHKey (bool $ expected , string $ key ){
24
+ #[DataProvider("SSHKeyProvider " )]
25
+ public function testTestValidSSHKey (bool $ expected , string $ key )
26
+ {
22
27
$ SITE = new UnitySite ();
23
28
$ this ->assertEquals ($ expected , $ SITE ->testValidSSHKey ($ key ));
24
29
}
Original file line number Diff line number Diff line change 1
1
<?php
2
+
2
3
require_once __DIR__ . "/../../vendor/autoload.php " ;
3
4
4
5
require_once __DIR__ . "/../../resources/lib/UnityLDAP.php " ;
You can’t perform that action at this time.
0 commit comments