Skip to content

Commit 5dc4178

Browse files
committed
test: Added Additional Assertions
1 parent 1018f07 commit 5dc4178

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/webfiori/framework/test/writers/WebServiceTestCaseWriterTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public function test00() {
1717
$w = new APITestCaseWriter(new TasksServicesManager(), ForceTaskExecutionService::class);
1818
$this->assertEquals('tests\\apis\\WebServiceTest', $w->getName(true));
1919
$this->assertEquals(9, $w->getPhpUnitVersion());
20+
$this->assertEquals(ROOT_PATH.DS.'tests'.DS.'apis'.DS.'WebServiceTest.php', $w->getAbsolutePath());
2021
$w->writeClass();
2122
$this->assertTrue(class_exists('\\'.$w->getName(true)));
2223
unlink($w->getAbsolutePath());
@@ -31,6 +32,7 @@ public function test01() {
3132
$w->setPath(ROOT_PATH.DS.'tests'.DS.'cool');
3233
$this->assertEquals('tests\\cool\\CoolTest', $w->getName(true));
3334
$w->writeClass();
35+
$this->assertEquals(ROOT_PATH.DS.'tests'.DS.'cool'.DS.'CoolTest.php', $w->getAbsolutePath());
3436
$this->assertTrue(file_exists($w->getAbsolutePath()));
3537
require_once $w->getAbsolutePath();
3638
$this->assertTrue(class_exists('\\'.$w->getName(true)));

0 commit comments

Comments
 (0)