Skip to content

Commit b756dce

Browse files
committed
Cleanup
1 parent 5bde1a6 commit b756dce

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

tests/Helpers/PropertyTypeHintTest.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

tests/Helpers/TypeHintTest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php declare(strict_types = 1);
2+
3+
namespace SlevomatCodingStandard\Helpers;
4+
5+
class TypeHintTest extends TestCase
6+
{
7+
8+
public function test(): void
9+
{
10+
$typeHint = new TypeHint('?string', true, 1, 6);
11+
12+
self::assertSame('?string', $typeHint->getTypeHint());
13+
self::assertTrue($typeHint->isNullable());
14+
self::assertSame(1, $typeHint->getStartPointer());
15+
self::assertSame(6, $typeHint->getEndPointer());
16+
}
17+
18+
}

0 commit comments

Comments
 (0)