Skip to content

Commit 5e71d6b

Browse files
committed
fix style
1 parent 9678c60 commit 5e71d6b

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

test/unit/UnitySiteTest.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
<?php
2+
23
namespace UnityWebPortal\lib;
4+
35
use PHPUnit\Framework\TestCase;
46
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()
711
{
812
return [
913
[false, ""],
@@ -17,8 +21,9 @@ public static function ssh_key_provider()
1721
];
1822
}
1923

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+
{
2227
$SITE = new UnitySite();
2328
$this->assertEquals($expected, $SITE->testValidSSHKey($key));
2429
}

test/unit/bootstrap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
require_once __DIR__ . "/../../vendor/autoload.php";
34

45
require_once __DIR__ . "/../../resources/lib/UnityLDAP.php";

0 commit comments

Comments
 (0)