Skip to content

Commit 6722475

Browse files
committed
tests: cs
1 parent 6a286f8 commit 6722475

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

tests/UI/Presenter.formatLayoutTemplateFiles.phpt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ use Tester\Assert;
1010

1111

1212
require __DIR__ . '/../bootstrap.php';
13-
require __DIR__ . '/one/Presenter1.php';
14-
require __DIR__ . '/two/Presenter2.php';
13+
require __DIR__ . '/one/APresenter.php';
14+
require __DIR__ . '/two/BPresenter.php';
1515

1616

1717
test('with subdir templates', function () {
18-
$presenter = new Presenter1;
18+
$presenter = new APresenter;
1919
$presenter->setParent(null, 'One');
2020
$presenter->setLayout('my');
2121

@@ -28,7 +28,7 @@ test('with subdir templates', function () {
2828

2929

3030
test('without subdir templates', function () {
31-
$presenter = new Presenter2;
31+
$presenter = new BPresenter;
3232
$presenter->setParent(null, 'Two');
3333

3434
Assert::same([
@@ -40,7 +40,7 @@ test('without subdir templates', function () {
4040

4141

4242
test('with module & subdir templates', function () {
43-
$presenter = new Presenter1;
43+
$presenter = new APresenter;
4444
$presenter->setParent(null, 'Module:SubModule:One');
4545

4646
Assert::same([
@@ -54,7 +54,7 @@ test('with module & subdir templates', function () {
5454

5555

5656
test('with module & without subdir templates', function () {
57-
$presenter = new Presenter2;
57+
$presenter = new BPresenter;
5858
$presenter->setParent(null, 'Module:SubModule:Two');
5959

6060
Assert::same([
@@ -68,7 +68,7 @@ test('with module & without subdir templates', function () {
6868

6969

7070
test('direct file', function () {
71-
$presenter = new Presenter2;
71+
$presenter = new BPresenter;
7272
$presenter->setLayout(__DIR__ . '/file.latte');
7373

7474
Assert::same([

tests/UI/Presenter.formatTemplateFiles.phpt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ use Tester\Assert;
1010

1111

1212
require __DIR__ . '/../bootstrap.php';
13-
require __DIR__ . '/one/Presenter1.php';
14-
require __DIR__ . '/two/Presenter2.php';
13+
require __DIR__ . '/one/APresenter.php';
14+
require __DIR__ . '/two/BPresenter.php';
1515

1616

1717
test('with subdir templates', function () {
18-
$presenter = new Presenter1;
18+
$presenter = new APresenter;
1919
$presenter->setParent(null, 'One');
2020
$presenter->setView('view');
2121

@@ -27,7 +27,7 @@ test('with subdir templates', function () {
2727

2828

2929
test('without subdir templates', function () {
30-
$presenter = new Presenter2;
30+
$presenter = new BPresenter;
3131
$presenter->setParent(null, 'Two');
3232
$presenter->setView('view');
3333

@@ -39,7 +39,7 @@ test('without subdir templates', function () {
3939

4040

4141
test('with module & subdir templates', function () {
42-
$presenter = new Presenter1;
42+
$presenter = new APresenter;
4343
$presenter->setParent(null, 'Module:One');
4444
$presenter->setView('view');
4545

@@ -51,7 +51,7 @@ test('with module & subdir templates', function () {
5151

5252

5353
test('with module & without subdir templates', function () {
54-
$presenter = new Presenter2;
54+
$presenter = new BPresenter;
5555
$presenter->setParent(null, 'Module:Two');
5656
$presenter->setView('view');
5757

tests/UI/one/APresenter.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
class APresenter extends Nette\Application\UI\Presenter
6+
{
7+
}

tests/UI/one/Presenter1.php

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

tests/UI/two/Presenter2.php renamed to tests/UI/two/BPresenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
declare(strict_types=1);
44

5-
class Presenter2 extends Presenter1
5+
class BPresenter extends APresenter
66
{
77
}

0 commit comments

Comments
 (0)