-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bf3dec
commit 8026b9d
Showing
1 changed file
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
<?php | ||
// ActivateTest.php | ||
|
||
use ServeStatic\Main; | ||
// Import the necessary namespaces | ||
use ServeStatic\Main\Activate; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
class ActivateTest extends \PHPUnit\Framework\TestCase { | ||
class ActivateTest extends TestCase { | ||
|
||
public function testone(){ | ||
public function testOneMethod() { | ||
// Arrange | ||
$instance = new Activate(); | ||
$ex = 5; | ||
|
||
self::assertEquals($ex, $a); | ||
$expected = 5; | ||
|
||
// Act | ||
$result = $instance->one($expected); | ||
|
||
// Assert | ||
$this->assertEquals($expected, $result); | ||
} | ||
} | ||
} |