8000 Move tests · symfony/symfony@712ba1d · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 712ba1d

Browse files
committed
Move tests
1 parent 1d69ff8 commit 712ba1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/TypeInfo/Tests/TypeResolver/StringTypeResolverTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ public static function resolveDataProvider(): iterable
134134
yield [Type::intRange(to: -1), 'negative-int'];
135135
yield [Type::intRange(to: 0), 'non-positive-int'];
136136
yield [Type::union(Type::intRange(to: -1), Type::intRange(from: 1)), 'non-zero-int'];
137+
yield [Type::intRange(0, 100), 'int<0, 100>'];
138+
yield [Type::intRange(), 'int<min, max>'];
137139

138140
// explicit string
139141
yield [Type::explicitString('class-string'), 'class-string'];
@@ -146,8 +148,6 @@ public static function resolveDataProvider(): iterable
146148
// generic
147149
yield [Type::generic(Type::object(\DateTime::class), Type::string(), Type::bool()), \DateTime::class.'<string, bool>'];
148150
yield [Type::generic(Type::object(\DateTime::class), Type::generic(Type::object(\Stringable::class), Type::bool())), \sprintf('%s<%s<bool>>', \DateTime::class, \Stringable::class)];
149-
yield [Type::intRange(0, 100), 'int<0, 100>'];
150-
yield [Type::intRange(), 'int<min, max>'];
151151

152152
// union
153153
yield [Type::union(Type::int(), Type::string()), 'int|string'];

0 commit comments

Comments
 (0)
0