Skip to content

Commit

Permalink
unit test - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajinsharwar committed Mar 1, 2024
1 parent 9bf3dec commit 8026b9d
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions test/ActivateTest.php
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);
}
}
}

0 comments on commit 8026b9d

Please sign in to comment.