Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Commit 6839699

Browse files
authored
Merge pull request #56 from 8fold/feed-rss
Element seems updated
2 parents b920960 + e601b64 commit 6839699

File tree

158 files changed

+2202
-12966
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+2202
-12966
lines changed

tests/UIKit/FormControlsTest.php renamed to UIKit/test/zzArchive/FormControlsTest.php

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
namespace Eightfold\Markup\Tests\UIKit;
44

5-
use PHPUnit\Framework\TestCase;
5+
use Eightfold\Markup\Tests\TestCase;
6+
use Eightfold\Foldable\Tests\TestEqualsPerformance as AssertEquals;
67

78
use Carbon\Carbon;
89

@@ -11,23 +12,27 @@
1112

1213
class FormControlsTest extends TestCase
1314
{
14-
public function testNothing()
15+
protected $maxMilliseconds = 5.5;
16+
17+
public function testFlowsToHtml()
1518
{
16-
$this->assertTrue(true);
19+
$expected = '<input type="text" placeholder="hello">';
20+
$actual = UIKit::input()->attr("type text", "placeholder hello");
21+
$this->assertEqualsWithPerformance($expected, $actual->unfold(), 11.25);
1722
}
1823

1924
// public function testFileInputBase()
2025
// {
2126
// $expected = '<div><label for="some_file">Label</label><input id="some_file" type="file" name="some_file" required></div>';
2227
// $result = UIKit::fileInput('Label', 'some_file')->unfold();
23-
// $this->assertEquals($expected, $result);
28+
// $this->assertEqualsWithPerformance($expected, $result);
2429
// }
2530

2631
// public function testHiddenInputBase()
2732
// {
2833
// $expected = '<input type="hidden" name="input_name" value="input_value">';
2934
// $result = UIKit::hiddenInput('input_name', 'input_value')->unfold();
30-
// $this->assertEquals($expected, $result);
35+
// $this->assertEqualsWithPerformance($expected, $result);
3136
// }
3237

3338
// public function testStripeElementsBase()
@@ -38,6 +43,6 @@ public function testNothing()
3843
// , 'MY_API_KEY'
3944
// , 'Input label'
4045
// , 'Button label')->unfold();
41-
// $this->assertEquals($expected, $result);
46+
// $this->assertEqualsWithPerformance($expected, $result);
4247
// }
4348
}

UIKit/zzArchive/FormControls/Button.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Eightfold\Markup\UIKit\Elements\FormControls;
44

5+
use Eightfold\Shoop\ESArray;
6+
57
use Eightfold\Html\Elements\HtmlElement;
68

79
use Eightfold\HtmlComponent\Component;

UIKit/zzArchive/FormControls/Progress.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@
99
use Eightfold\UIKit\UIKit;
1010
use Eightfold\UIKit\Elements\Simple\Link;
1111

12-
/**
13-
*
14-
* UIKit::ef_progress(value, min = 0, max = 100)
15-
* ->meter(low = 25, high = 50, optimum = 75)
16-
* ->range(step = 1)
17-
* ->labels('label1', 'label2', label3)
18-
* ->links(Link1, Link2, Link3)
19-
*
20-
*/
2112
class Progress extends HtmlElement
2213
{
2314
private $_type = 'progress'; // meter, range

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
],
1212
"require": {
1313
"php": "~7.0",
14-
"8fold/php-shoop-extras": "~0.1",
14+
"8fold/php-shoop-shelf": "dev-master@dev",
15+
"8fold/php-html-spec": "dev-master@dev",
1516
"8fold/commonmark-abbreviations": "~1.0",
1617
"8fold/commonmark-accordions": "~1.0",
1718
"nesbot/carbon": "~2.36"
@@ -26,7 +27,8 @@
2627
},
2728
"autoload-dev": {
2829
"psr-4": {
29-
"Eightfold\\Markup\\Tests\\": "./tests/"
30+
"Eightfold\\Markup\\Tests\\": "./tests/",
31+
"Eightfold\\Foldable\\Tests\\": "./vendor/8fold/php-foldable/tests/"
3032
}
3133
},
3234
"config": {

0 commit comments

Comments
 (0)