diff --git a/README.md b/README.md
index da56f36..a545593 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-
+
EasePHP Twitter bootstrap5 Widgets
==================================
diff --git a/composer.json b/composer.json
index b00061b..798847b 100644
--- a/composer.json
+++ b/composer.json
@@ -20,8 +20,18 @@
}
},
"minimum-stability": "dev",
+ "prefer-stable": true,
+ "repositories": [
+ {
+ "type": "path",
+ "url": "../php-vitexsoftware-ease-twbootstrap5",
+ "options": {
+ "symlink": true
+ }
+ }
+ ],
"require": {
- "vitexsoftware/ease-twbootstrap5": "^1.2"
+ "vitexsoftware/ease-twbootstrap5": "^1.3"
},
"require-dev": {
"phpunit/phpunit": "*",
diff --git a/php-vitexsoftware-ease-bootstrap5-widgets.svg b/php-vitexsoftware-ease-bootstrap5-widgets.svg
index d8b665f..a46b0f8 100644
--- a/php-vitexsoftware-ease-bootstrap5-widgets.svg
+++ b/php-vitexsoftware-ease-bootstrap5-widgets.svg
@@ -1,5 +1,492 @@
-
-
\ No newline at end of file
+
+
+
+
diff --git a/phpunit.xml b/phpunit.xml
index c561b8e..c885288 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -1,22 +1,17 @@
-
+
./tests
-
-
+
+
src/Ease
-
-
-
-
+
+
diff --git a/project-logo.svg b/project-logo.svg
deleted file mode 100644
index a46b0f8..0000000
--- a/project-logo.svg
+++ /dev/null
@@ -1,492 +0,0 @@
-
-
-
-
diff --git a/tests/src/Ease/TWB5/Widgets/MainPageMenuTest.php b/tests/src/Ease/TWB5/Widgets/MainPageMenuTest.php
index 2f4b948..94a5b19 100644
--- a/tests/src/Ease/TWB5/Widgets/MainPageMenuTest.php
+++ b/tests/src/Ease/TWB5/Widgets/MainPageMenuTest.php
@@ -22,7 +22,7 @@
*/
class MainPageMenuTest extends \PHPUnit\Framework\TestCase
{
- protected MainPageMenu $object;
+ protected ?MainPageMenu $object = null;
/**
* Sets up the fixture, for example, opens a network connection.
@@ -56,7 +56,7 @@ public function testAddMenuItem(): void
$result = $this->object->addMenuItem($title, $url, $image, $description, $buttonText, $properties);
- $this->assertInstanceOf(\Ease\TWB5\Row::class, $result);
+ $this->assertInstanceOf(\Ease\TWB5\Col::class, $result);
$this->assertStringContainsString($title, (string) $result);
$this->assertStringContainsString($url, (string) $result);
$this->assertStringContainsString($image, (string) $result);
@@ -70,7 +70,7 @@ public function testAddMenuItem(): void
public function testConstructor(): void
{
$this->assertInstanceOf(MainPageMenu::class, $this->object);
- $this->assertEquals('container', $this->object->getTagProperty('class'));
+ $this->assertStringContainsString('container', $this->object->getTagProperty('class'));
$this->assertEquals('margin: auto;', $this->object->getTagProperty('style'));
}
}
diff --git a/tests/src/Ease/TWB5/Widgets/SelectizedTest.php b/tests/src/Ease/TWB5/Widgets/SelectizedTest.php
index 7316994..75df3ee 100644
--- a/tests/src/Ease/TWB5/Widgets/SelectizedTest.php
+++ b/tests/src/Ease/TWB5/Widgets/SelectizedTest.php
@@ -22,7 +22,7 @@
*/
class SelectizedTest extends \PHPUnit\Framework\TestCase
{
- protected Selectized $object;
+ protected ?Selectized $object = null;
/**
* Sets up the fixture, for example, opens a network connection.
@@ -30,7 +30,7 @@ class SelectizedTest extends \PHPUnit\Framework\TestCase
*/
protected function setUp(): void
{
- $this->object = new Selectized();
+ $this->object = new Selectized('test');
}
/**
@@ -60,8 +60,7 @@ public function testfinalize(): void
*/
public function testselectize(): void
{
- $this->assertEquals('', $this->object->selectize());
- // Remove the following lines when you implement this test.
+ $this->assertInstanceOf(Selectized::class, $this->object->selectize());
$this->markTestIncomplete('This test has not been implemented yet.');
}
}
diff --git a/tests/src/Ease/TWB5/Widgets/ToggleTest.php b/tests/src/Ease/TWB5/Widgets/ToggleTest.php
index d9c1506..7ee1777 100644
--- a/tests/src/Ease/TWB5/Widgets/ToggleTest.php
+++ b/tests/src/Ease/TWB5/Widgets/ToggleTest.php
@@ -22,7 +22,7 @@
*/
class ToggleTest extends \PHPUnit\Framework\TestCase
{
- protected Toggle $object;
+ protected ?Toggle $object = null;
/**
* Sets up the fixture, for example, opens a network connection.
@@ -30,7 +30,7 @@ class ToggleTest extends \PHPUnit\Framework\TestCase
*/
protected function setUp(): void
{
- $this->object = new Toggle();
+ $this->object = new Toggle('test');
}
/**
@@ -48,8 +48,7 @@ protected function tearDown(): void
*/
public function testsetProperties(): void
{
- $this->assertEquals('', $this->object->setProperties());
- // Remove the following lines when you implement this test.
+ $this->object->setProperties(['data-on' => 'On']);
$this->markTestIncomplete('This test has not been implemented yet.');
}