Skip to content

Fix: Move and rename tests - #628

Merged
kamil-tekiela merged 1 commit into
php:masterfrom
localheinz:fix/move
Jul 9, 2022
Merged

Fix: Move and rename tests#628
kamil-tekiela merged 1 commit into
php:masterfrom
localheinz:fix/move

Conversation

@localheinz

@localheinzlocalheinz commented Jul 8, 2022

Copy link
Copy Markdown
Contributor

This pull request

  • moves and renames tests

Follows #606.

--FILE--
<?php
require_once __DIR__ . "/../autoload.php";
require_once __DIR__ . "/../../../autoload.php";

@localheinzlocalheinzJul 8, 2022

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we used phpunit/phpunit, I would create a test for phpweb/UserNotes/Sorter in one of

  • phpweb/Test/UserNotes/SorterTest
  • phpweb/Test/Unit/UserNotes/SorterTest

to have some sort of 1:1 mapping of class and test case.

Does that make sense?

@kamil-tekiela

Copy link
Copy Markdown
Member

How about using more descriptive file names?

@localheinzlocalheinz changed the title Fix: Move testsFix: Move and rename testsJul 9, 2022
@kamil-tekiela
kamil-tekiela merged commit b9da39a into php:masterJul 9, 2022
@localheinz
localheinz deleted the fix/move branch July 9, 2022 10:35
@localheinz

Copy link
Copy Markdown
ContributorAuthor

Thank you, @kamil-tekiela!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@localheinz@kamil-tekiela