Skip to content

Commit b86fe50

Browse files
committed
Use self for asserts
1 parent e94da32 commit b86fe50

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/ConfigTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ public function setup() : void
2323

2424
public function testCustomRules() : void
2525
{
26-
$this->assertContainsEquals(
26+
self::assertContainsEquals(
2727
['array_indentation' => false],
2828
$this->config->getRules()
2929
);
3030
}
3131

3232
public function testHeaderComment() : void
3333
{
34-
$this->assertFalse(
34+
self::assertFalse(
3535
isset($this->config->getRules()['header_comment'])
3636
);
3737
$this->config->setHeaderComment('ABC');
38-
$this->assertSame(
38+
self::assertSame(
3939
'ABC',
4040
// @phpstan-ignore-next-line
4141
$this->config->getRules()['header_comment']['header']
@@ -47,12 +47,12 @@ public function testDefaultHeaderComment() : void
4747
$this->config->setDefaultHeaderComment('Foo Bar');
4848
// @phpstan-ignore-next-line
4949
$header = $this->config->getRules()['header_comment']['header'];
50-
$this->assertStringContainsString('Foo Bar', $header);
51-
$this->assertStringNotContainsString('(c)', $header);
50+
self::assertStringContainsString('Foo Bar', $header);
51+
self::assertStringNotContainsString('(c)', $header);
5252
$this->config->setDefaultHeaderComment('Bazz', 'Acme');
5353
// @phpstan-ignore-next-line
5454
$header = $this->config->getRules()['header_comment']['header'];
55-
$this->assertStringContainsString('Bazz', $header);
56-
$this->assertStringContainsString('(c) Acme', $header);
55+
self::assertStringContainsString('Bazz', $header);
56+
self::assertStringContainsString('(c) Acme', $header);
5757
}
5858
}

tests/FinderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ class FinderTest extends TestCase
1616
{
1717
public function testInstance() : void
1818
{
19-
$this->assertInstanceOf(Finder::class, Finder::create());
19+
self::assertInstanceOf(Finder::class, Finder::create());
2020
}
2121
}

0 commit comments

Comments
 (0)