Skip to content

Commit

Permalink
Update CreateAPITestCaseTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Oct 28, 2024
1 parent e83f9fd commit 497b957
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/webfiori/framework/test/cli/CreateAPITestCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ public function testCreateAPITestCase01() {

$this->assertEquals(0, $this->getExitCode());
$clazz = '\\tests\webfiori\\framework\scheduler\webServices\\TasksLoginServiceTest';
$this->assertTrue(file_exists($path.DS.'TasksLoginServiceTest.php'));
require_once $path.DS.'TasksLoginServiceTest.php';
$this->assertTrue(class_exists($clazz));
$this->removeClass($clazz);
}
Expand All @@ -73,6 +75,8 @@ public function testCreateAPITestCase02() {
]));
$this->assertEquals(0, $this->getExitCode());
$clazz = '\\tests\webfiori\\framework\scheduler\webServices\\GetTasksServiceTest';
$this->assertTrue(file_exists($path.DS.'GetTasksServiceTest.php'));
require_once $path.DS.'GetTasksServiceTest.php';
$this->assertTrue(class_exists($clazz));
$this->removeClass($clazz);
}
Expand Down Expand Up @@ -106,6 +110,8 @@ public function testCreateAPITestCase03() {
$this->assertEquals(0, $this->getExitCode());

$clazz = '\\tests\webfiori\\framework\scheduler\webServices\\GetTasksServiceTest';
$this->assertTrue(file_exists($path.DS.'GetTasksServiceTest.php'));
require_once $path.DS.'GetTasksServiceTest.php';
$this->assertTrue(class_exists($clazz));
$this->removeClass($clazz);
}
Expand Down Expand Up @@ -139,6 +145,8 @@ public function testCreateAPITestCase04() {
$this->assertEquals(0, $this->getExitCode());

$clazz = '\\tests\\tests\\apis\\multiple\\WebService00Test';
$this->assertTrue(file_exists($path.DS.'WebService00Test.php'));
require_once $path.DS.'WebService00Test.php';
$this->assertTrue(class_exists($clazz));
$this->removeClass($clazz);
}
Expand Down Expand Up @@ -188,6 +196,8 @@ public function testCreateAPITestCase06() {
]));
$this->assertEquals(0, $this->getExitCode());
$clazz = '\\tests\\tests\\apis\\multiple\\WebService00Test';
$this->assertTrue(file_exists($path.DS.'WebService00Test.php'));
require_once $path.DS.'WebService00Test.php';
$this->assertTrue(class_exists($clazz));
$this->removeClass($clazz);
}
Expand Down Expand Up @@ -220,6 +230,8 @@ public function testCreateAPITestCase08() {
]));
$this->assertEquals(0, $this->getExitCode());
$clazz = '\\tests\\tests\\apis\\multiple\\WebService01Test';
$this->assertTrue(file_exists($path.DS.'WebService01Test.php'));
require_once $path.DS.'WebService01Test.php';
$this->assertTrue(class_exists($clazz));
$this->removeClass($clazz);
}
Expand Down

0 comments on commit 497b957

Please sign in to comment.