Skip to content

Commit a97438b

Browse files
committed
fix: Namespaces
1 parent 202ab91 commit a97438b

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ php-cs-fixer-v2.phar
1010
.idea/*
1111
/release-please-config.json
1212
*.Identifier
13+
/tests/.phpunit.cache/code-coverage
14+
/tests/.phpunit.cache

WebFiori/UI/HTMLDoc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace WebFiori\UI;
1212

1313
use WebFiori\Collections\LinkedList;
14-
use WebFiori\UI\exceptions\InvalidNodeNameException;
14+
use WebFiori\UI\Exceptions\InvalidNodeNameException;
1515
/**
1616
* A class that represents HTML document.
1717
*

WebFiori/UI/ListItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
namespace WebFiori\UI;
1212

13-
use WebFiori\UI\exceptions\InvalidNodeNameException;
13+
use WebFiori\UI\Exceptions\InvalidNodeNameException;
1414

1515
/**
1616
* A class that represents List Item node.

WebFiori/UI/TemplateCompiler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
use InvalidArgumentException;
1414
use WebFiori\Collections\Queue;
15-
use WebFiori\UI\exceptions\InvalidNodeNameException;
16-
use WebFiori\UI\exceptions\TemplateNotFoundException;
15+
use WebFiori\UI\Exceptions\InvalidNodeNameException;
16+
use WebFiori\UI\Exceptions\TemplateNotFoundException;
1717

1818
/**
1919
* A class which is used to compile and load php/html templates to objects

tests/WebFiori/Tests/UI/LoadTemplateTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use WebFiori\UI\HTMLDoc;
77
use WebFiori\UI\HTMLNode;
88
use WebFiori\UI\TemplateCompiler;
9+
use WebFiori\UI\Exceptions\TemplateNotFoundException;
910
/**
1011
* Description of TestLoadTemplate
1112
*
@@ -205,7 +206,7 @@ public function testHeadTemplate01() {
205206
* @test
206207
*/
207208
public function test11() {
208-
$this->expectException(\webfiori\ui\exceptions\TemplateNotFoundException::class);
209+
$this->expectException(TemplateNotFoundException::class);
209210
$compiler = new TemplateCompiler(self::TEST_TEMPLATES_PATH.'not-exist.php');
210211
}
211212
/**

0 commit comments

Comments
 (0)