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

Commit 030431b

Browse files
authored
Consider first major (#74)
* removing unused dependencies * update tests * update performance tests * dependency check * update performance tests * performance tests * test * tests * tests * tests * tests * tests * tests * tests * Update SimpleTest.php * test * dependencies * tests * tests * Update SimpleTest.php * Removing direct dependency on illuminate/support
1 parent ffc9805 commit 030431b

File tree

8 files changed

+82
-81
lines changed

8 files changed

+82
-81
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
}
1111
],
1212
"require": {
13-
"php": "~7.2|^8.0",
14-
"8fold/php-shoop-shelf": "~0.8.5",
15-
"8fold/php-html-spec": "~0.0.3",
16-
"nesbot/carbon": "~2.5"
13+
"php": "^7.2|^8.0",
14+
"8fold/php-shoop-shelf": "^0.8.5",
15+
"8fold/php-html-spec": "^0.0.4",
16+
"nesbot/carbon": "^2.5"
1717
},
1818
"require-dev": {
19-
"phpunit/phpunit": "~9.1"
19+
"phpunit/phpunit": "^9.3.3"
2020
},
2121
"autoload": {
2222
"psr-4": {

composer.lock

Lines changed: 66 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/Element/ElementTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function self_contained_element()
8888
AssertEquals::applyWith(
8989
'<a href="/path"></a>',
9090
"string",
91-
1.25, // 1.23, // 1.21, // 1.03, // 0.32, // 0.3, // 0.27, // 0.21, // 0.2,
91+
1.33, // 1.25, // 1.23, // 1.21, // 1.03, // 0.32, // 0.3, // 0.27, // 0.21, // 0.2,
9292
1
9393
)->unfoldUsing(
9494
new Element("a", ["href /path"], false)

tests/Html/HtmlElementTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function test_ordering_lightweight()
2626
AssertEquals::applyWith(
2727
'<p role="alert" id="something" class="somethingElse somethingElse2" style="background: red;" type="some_type" tabindex="1" accesskey="S">Hello</p>',
2828
"string",
29-
9.69, // 8.42, // 8.34, // 7.8, // 7.38, // updated shoop 8.11 // 7.82 // 7.6 // 6.85
29+
10.03, // 9.89, // 9.69, // 8.42, // 8.34, // 7.8, // 7.38, // updated shoop 8.11 // 7.82 // 7.6 // 6.85
3030
559
3131
)->unfoldUsing(
3232
Html::p('Hello')
@@ -59,7 +59,7 @@ public function full_page()
5959
AssertEquals::applyWith(
6060
'<html><head><title>Hello, World!</title><style></style></head><body><img src="http://example.com" alt="A picture of the world"><p is="my-component">Hello, World!</p><my-link href="http://example.com/domination">World Domination</my-link><p>Done!</p></body></html>',
6161
"string",
62-
18.93, // 18.84, // 18.13, // 17.62, // 15.45, // 8.56, // 7.07, // 6.69, // 6.64, // 6.59, // 6.11, // 5.53, // 5.34, // 9.56 // 7.14 // 6.94
62+
20.44, // 18.93, // 18.84, // 18.13, // 17.62, // 15.45, // 8.56, // 7.07, // 6.69, // 6.64, // 6.59, // 6.11, // 5.53, // 5.34, // 9.56 // 7.14 // 6.94
6363
1
6464
)->unfoldUsing(
6565
Html::html(
@@ -132,7 +132,7 @@ public function nested_elements_with_string()
132132
AssertEquals::applyWith(
133133
'<ul><li>Hello<ol><li>My name is:</li></ol></li></ul>',
134134
"string",
135-
10.23, // 8.76, // 8.22, // 6.19, // 4.95, // 4.16, // 3.04, // 3, // 2.88, // 2.78, // 2.53, // updated shoop 7.24
135+
16.17, // 10.23, // 8.76, // 8.22, // 6.19, // 4.95, // 4.16, // 3.04, // 3, // 2.88, // 2.78, // 2.53, // updated shoop 7.24
136136
1
137137
)->unfoldUsing(
138138
Html::ul(
@@ -148,7 +148,7 @@ public function nested_elements_with_string()
148148
AssertEquals::applyWith(
149149
'<a class="some-class" href="http://example.com">Hello</a>',
150150
"string",
151-
3.99, // 3.93, // 3.9, // 3.75, // 3.32, // 1.76, // 1.6, // 1.56, // 1.21, // 1.13, // 0.97, // 0.87, // 2.37
151+
4.04, // 3.99, // 3.93, // 3.9, // 3.75, // 3.32, // 1.76, // 1.6, // 1.56, // 1.21, // 1.13, // 0.97, // 0.87, // 2.37
152152
1
153153
)->unfoldUsing(
154154
Html::a('Hello')->attr('class some-class', 'href http://example.com')
@@ -164,7 +164,7 @@ public function all_passed_attributes_end_up_in_the_element()
164164
AssertEquals::applyWith(
165165
'<body role="document"></body>',
166166
"string",
167-
3, // 2.83, // 2.24, // 2.09, // 1.12, // 0.95, // 0.85, // 0.78, // updated shoop 4.13 // 6.15 // 6.12 // 5.76
167+
10.55, // 3, // 2.83, // 2.24, // 2.09, // 1.12, // 0.95, // 0.85, // 0.78, // updated shoop 4.13 // 6.15 // 6.12 // 5.76
168168
1
169169
)->unfoldUsing(
170170
Html::body()->attr("role document")->unfold()

tests/UIKit/CompoundTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function web_head()
4848
AssertEquals::applyWith(
4949
'<meta name="viewport" content="width=device-width,initial-scale=1"><link type="image/x-icon" rel="icon" href="favicon.ico"><link rel="apple-touch-icon" href="apple-touch-icon.png" sizes="180x180"><link rel="image/png" href="favicon-32x32.png" sizes="32x32"><link rel="image/png" href="favicon-16x16.png" sizes="16x16">',
5050
"string",
51-
22.09, // 13.62,
51+
41.86, // 22.09, // 13.62,
5252
596 // 594 // 588
5353
)->unfoldUsing(
5454
UIKit::webHead()->favicons(

tests/UIKit/PageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function web_view()
2121
AssertEquals::applyWith(
2222
'<!doctype html><html><head><title>UIKit</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"></head><body class="theme"><p>Hello, World!</p></body></html>',
2323
"string",
24-
17.82, // 17.28, // 13.74, // 10.21 // 9.69 // 9.46
24+
18.66, // 17.82, // 17.28, // 13.74, // 10.21 // 9.69 // 9.46
2525
596
2626
)->unfoldUsing(
2727
UIKit::webView(

tests/UIKit/SimpleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function simple_lists()
7979
AssertEquals::applyWith(
8080
'<ol><li>hello</li><li>good-bye</li></ol>',
8181
"string",
82-
6.43, // 5.99, // 5.6, // 5.11, // 3.65, // 3.59, // 3.56, // 2.23, // 2.19, // 2.1,
82+
10.88, // 6.43, // 5.99, // 5.6, // 5.11, // 3.65, // 3.59, // 3.56, // 2.23, // 2.19, // 2.1,
8383
2.66
8484
)->unfoldUsing(
8585
UIKit::listWith(

tests/UIKit/SocialMetaTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function facebook()
3434
AssertEquals::applyWith(
3535
'<meta content="website" property="og:type"><meta content="Hello, World!" property="og:title"><meta content="https://8fold.pro" property="og:url"><meta content="A short description. LinkedIn would like to have 100+ characters." property="og:description"><meta content="https://8fold.pro/assets/ui/logo.svg" property="og:image"><meta content="ABCDEFGHIJKLMNOP" property="og:app_id">',
3636
"string",
37-
22.92, // 21.38, // 20.31, // 18.94, // 18.23, // 16.28, // 9.33, // 8.67, // 8.61, // 6.3, // 5.93, // 5.54,
37+
41.13, // 22.92, // 21.38, // 20.31, // 18.94, // 18.23, // 16.28, // 9.33, // 8.67, // 8.61, // 6.3, // 5.93, // 5.54,
3838
1
3939
)->unfoldUsing(
4040
UIKit::socialMeta(
@@ -56,7 +56,7 @@ public function twitter()
5656
AssertEquals::applyWith(
5757
'<meta content="website" property="og:type"><meta content="Hello, World!" property="og:title"><meta content="https://8fold.pro" property="og:url"><meta content="A short description. LinkedIn would like to have 100+ characters." property="og:description"><meta content="https://8fold.pro/assets/ui/logo.svg" property="og:image"><meta content="ABCDEFGHIJKLMNOP" property="og:app_id"><meta name="twitter:card" content="summary_large_image">',
5858
"string",
59-
25.4, // 23.79, // 18.99, // 10.74, // 8.14, // 7.77, // 6.73, // 6.54,
59+
55.02, // 25.4, // 23.79, // 18.99, // 10.74, // 8.14, // 7.77, // 6.73, // 6.54,
6060
1
6161
)->unfoldUsing(
6262
UIKit::socialMeta(

0 commit comments

Comments
 (0)