8000 SA · msgphp/msgphp@bfb4963 · GitHub
[go: up one dir, main page]

Skip to content

Commit bfb4963

Browse files
committed
SA
1 parent 99813a6 commit bfb4963

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/Domain/Tests/GenericDomainCollectionTest.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,35 +52,27 @@ public function testLazyIsEmpty(): void
5252

5353
public function testLazyContains(): void
5454
{
55-
/** @psalm-suppress InvalidArgument */
5655
self::assertFalse(self::createLazyCollection([])->contains(1));
57-
/** @psalm-suppress InvalidArgument */
5856
self::assertTrue(self::createLazyCollection([null], $visited)->contains(null));
5957
self::assertSame([null], $visited);
60-
/** @psalm-suppress InvalidArgument */
6158
self::assertTrue(($collection = self::createLazyCollection([1, '2'], $visited))->contains(1));
6259
self::assertSame([1], $visited);
63-
/** @psalm-suppress InvalidArgument */
6460
self::assertFalse($collection->contains(2));
6561
self::assertSame([1, '2'], $visited);
6662

6763
$this->assertClosedGenerator();
6864

69-
/** @psalm-suppress InvalidArgument */
7065
$collection->contains(null);
7166
}
7267

7368
public function testLazyContainsKey(): void
7469
{
75-
/** @psalm-suppress InvalidArgument */
7670
self::assertFalse(self::createLazyCollection([])->containsKey(1));
77-
/** @psalm-suppress InvalidArgument */
7871
self::assertTrue(($collection = self::createLazyCollection([1, 'k' => 'v', '2' => null], $visited))->containsKey(2));
7972
self::assertSame([1, 'k' => 'v', '2' => null], $visited);
8073

8174
$this->assertUnrewindableGenerator();
8275

83-
/** @psalm-suppress InvalidArgument */
8476
$collection->containsKey(0);
8577
}
8678

@@ -126,17 +118,13 @@ public function testLazyLastWithEmptyCollection(): void
126118

127119
public function testLazyGet(): void
128120
{
129-
/** @psalm-suppress InvalidArgument */
130121
self::assertSame(1, ($collection = self::createLazyCollection([1, 2], $visited))->get(0));
131122
self::assertSame([1], $visited);
132-
/** @psalm-suppress InvalidArgument */
133123
self::assertSame(1, $collection->get('0'));
134-
/** @psalm-suppress InvalidArgument */
135124
self::assertSame(2, $collection->get(1));
136125

137126
$this->assertUnrewindableGenerator();
138127

139-
/** @psalm-suppress InvalidArgument */
140128
$collection->get(1);
141129
}
142130

@@ -146,7 +134,6 @@ public function testLazyGetWithEmptyCollection(): void
146134

147135
$this->expectException(UnknownCollectionElement::class);
148136

149-
/** @psalm-suppress InvalidArgument */
150137
$collection->get('foo');
151138
}
152139

@@ -156,7 +143,6 @@ public function testLazyGetWithUnknownKey(): void
156143

157144
$this->expectException(UnknownCollectionElement::class);
158145

159-
/** @psalm-suppress InvalidArgument */
160146
$collection->get('foo');
161147
}
162148

0 commit comments

Comments
 (0)
0