diff --git a/composer.json b/composer.json index b13eadc15..60ffac67c 100644 --- a/composer.json +++ b/composer.json @@ -57,7 +57,7 @@ "autoload-dev": { "psr-4": { "Tests\\": "Tests/", - "CondorcetPHP\\Condorcet\\Tests\\": "Tests/", + "CondorcetPHP\\Condorcet\\Tests\\": "tests/", "CondorcetPHP\\Condorcet\\Dev\\CondorcetDocumentationGenerator\\": "Dev/CondorcetDocumentationGenerator/", "CondorcetPHP\\Condorcet\\Benchmarks\\": "Benchmarks" } diff --git a/Tests/AlgoTestCase.php b/tests/AlgoTestCase.php similarity index 100% rename from Tests/AlgoTestCase.php rename to tests/AlgoTestCase.php diff --git a/Tests/DriversTestCase.php b/tests/DriversTestCase.php similarity index 100% rename from Tests/DriversTestCase.php rename to tests/DriversTestCase.php diff --git a/Tests/Examples/ExamplesTest.php b/tests/Examples/ExamplesTest.php similarity index 100% rename from Tests/Examples/ExamplesTest.php rename to tests/Examples/ExamplesTest.php diff --git a/Tests/Examples/ReadmeQuickExampleTest.php b/tests/Examples/ReadmeQuickExampleTest.php similarity index 100% rename from Tests/Examples/ReadmeQuickExampleTest.php rename to tests/Examples/ReadmeQuickExampleTest.php diff --git a/Tests/LargeElectionData/smallVote1.votes b/tests/LargeElectionData/smallVote1.votes similarity index 100% rename from Tests/LargeElectionData/smallVote1.votes rename to tests/LargeElectionData/smallVote1.votes diff --git a/Tests/Pest.php b/tests/Pest.php similarity index 100% rename from Tests/Pest.php rename to tests/Pest.php diff --git a/Tests/README.md b/tests/README.md similarity index 100% rename from Tests/README.md rename to tests/README.md diff --git a/Tests/src/Algo/Methods/Borda/BordaCountTest.php b/tests/src/Algo/Methods/Borda/BordaCountTest.php similarity index 100% rename from Tests/src/Algo/Methods/Borda/BordaCountTest.php rename to tests/src/Algo/Methods/Borda/BordaCountTest.php diff --git a/Tests/src/Algo/Methods/Borda/DowdallSystemTest.php b/tests/src/Algo/Methods/Borda/DowdallSystemTest.php similarity index 100% rename from Tests/src/Algo/Methods/Borda/DowdallSystemTest.php rename to tests/src/Algo/Methods/Borda/DowdallSystemTest.php diff --git a/Tests/src/Algo/Methods/CondorcetBasicTest.php b/tests/src/Algo/Methods/CondorcetBasicTest.php similarity index 100% rename from Tests/src/Algo/Methods/CondorcetBasicTest.php rename to tests/src/Algo/Methods/CondorcetBasicTest.php diff --git a/Tests/src/Algo/Methods/Copeland/CopelandTest.php b/tests/src/Algo/Methods/Copeland/CopelandTest.php similarity index 100% rename from Tests/src/Algo/Methods/Copeland/CopelandTest.php rename to tests/src/Algo/Methods/Copeland/CopelandTest.php diff --git a/Tests/src/Algo/Methods/Dodgson/DodgsonTest.php b/tests/src/Algo/Methods/Dodgson/DodgsonTest.php similarity index 100% rename from Tests/src/Algo/Methods/Dodgson/DodgsonTest.php rename to tests/src/Algo/Methods/Dodgson/DodgsonTest.php diff --git a/Tests/src/Algo/Methods/HighestAverages/A03.cvotes b/tests/src/Algo/Methods/HighestAverages/A03.cvotes similarity index 100% rename from Tests/src/Algo/Methods/HighestAverages/A03.cvotes rename to tests/src/Algo/Methods/HighestAverages/A03.cvotes diff --git a/Tests/src/Algo/Methods/HighestAverages/JeffersonTest.php b/tests/src/Algo/Methods/HighestAverages/JeffersonTest.php similarity index 100% rename from Tests/src/Algo/Methods/HighestAverages/JeffersonTest.php rename to tests/src/Algo/Methods/HighestAverages/JeffersonTest.php diff --git a/Tests/src/Algo/Methods/HighestAverages/SainteLagueTest.php b/tests/src/Algo/Methods/HighestAverages/SainteLagueTest.php similarity index 100% rename from Tests/src/Algo/Methods/HighestAverages/SainteLagueTest.php rename to tests/src/Algo/Methods/HighestAverages/SainteLagueTest.php diff --git a/Tests/src/Algo/Methods/HighestAveragesAndLargestRemainderMethodsTest.php b/tests/src/Algo/Methods/HighestAveragesAndLargestRemainderMethodsTest.php similarity index 100% rename from Tests/src/Algo/Methods/HighestAveragesAndLargestRemainderMethodsTest.php rename to tests/src/Algo/Methods/HighestAveragesAndLargestRemainderMethodsTest.php diff --git a/Tests/src/Algo/Methods/InstantRunoff/InstantRunoffTest.php b/tests/src/Algo/Methods/InstantRunoff/InstantRunoffTest.php similarity index 100% rename from Tests/src/Algo/Methods/InstantRunoff/InstantRunoffTest.php rename to tests/src/Algo/Methods/InstantRunoff/InstantRunoffTest.php diff --git a/Tests/src/Algo/Methods/KemenyYoung/KemenyYoungTest.php b/tests/src/Algo/Methods/KemenyYoung/KemenyYoungTest.php similarity index 100% rename from Tests/src/Algo/Methods/KemenyYoung/KemenyYoungTest.php rename to tests/src/Algo/Methods/KemenyYoung/KemenyYoungTest.php diff --git a/Tests/src/Algo/Methods/LargestRemainder/LargestRemainderTest.php b/tests/src/Algo/Methods/LargestRemainder/LargestRemainderTest.php similarity index 100% rename from Tests/src/Algo/Methods/LargestRemainder/LargestRemainderTest.php rename to tests/src/Algo/Methods/LargestRemainder/LargestRemainderTest.php diff --git a/Tests/src/Algo/Methods/Lotteries/RandomBallotTest.php b/tests/src/Algo/Methods/Lotteries/RandomBallotTest.php similarity index 100% rename from Tests/src/Algo/Methods/Lotteries/RandomBallotTest.php rename to tests/src/Algo/Methods/Lotteries/RandomBallotTest.php diff --git a/Tests/src/Algo/Methods/Lotteries/RandomCandidatesTest.php b/tests/src/Algo/Methods/Lotteries/RandomCandidatesTest.php similarity index 100% rename from Tests/src/Algo/Methods/Lotteries/RandomCandidatesTest.php rename to tests/src/Algo/Methods/Lotteries/RandomCandidatesTest.php diff --git a/Tests/src/Algo/Methods/Majority/FirstPastThePostTest.php b/tests/src/Algo/Methods/Majority/FirstPastThePostTest.php similarity index 100% rename from Tests/src/Algo/Methods/Majority/FirstPastThePostTest.php rename to tests/src/Algo/Methods/Majority/FirstPastThePostTest.php diff --git a/Tests/src/Algo/Methods/Majority/MultipleRoundsSystemTest.php b/tests/src/Algo/Methods/Majority/MultipleRoundsSystemTest.php similarity index 100% rename from Tests/src/Algo/Methods/Majority/MultipleRoundsSystemTest.php rename to tests/src/Algo/Methods/Majority/MultipleRoundsSystemTest.php diff --git a/Tests/src/Algo/Methods/Majority/TwoRoundSystemTest.php b/tests/src/Algo/Methods/Majority/TwoRoundSystemTest.php similarity index 100% rename from Tests/src/Algo/Methods/Majority/TwoRoundSystemTest.php rename to tests/src/Algo/Methods/Majority/TwoRoundSystemTest.php diff --git a/Tests/src/Algo/Methods/Minimax/MinimaxTest.php b/tests/src/Algo/Methods/Minimax/MinimaxTest.php similarity index 100% rename from Tests/src/Algo/Methods/Minimax/MinimaxTest.php rename to tests/src/Algo/Methods/Minimax/MinimaxTest.php diff --git a/Tests/src/Algo/Methods/RankedPairs/RankedPairsTest.php b/tests/src/Algo/Methods/RankedPairs/RankedPairsTest.php similarity index 100% rename from Tests/src/Algo/Methods/RankedPairs/RankedPairsTest.php rename to tests/src/Algo/Methods/RankedPairs/RankedPairsTest.php diff --git a/Tests/src/Algo/Methods/STV/CPO_StvTest.php b/tests/src/Algo/Methods/STV/CPO_StvTest.php similarity index 100% rename from Tests/src/Algo/Methods/STV/CPO_StvTest.php rename to tests/src/Algo/Methods/STV/CPO_StvTest.php diff --git a/Tests/src/Algo/Methods/STV/SingleTransferableVoteTest.php b/tests/src/Algo/Methods/STV/SingleTransferableVoteTest.php similarity index 100% rename from Tests/src/Algo/Methods/STV/SingleTransferableVoteTest.php rename to tests/src/Algo/Methods/STV/SingleTransferableVoteTest.php diff --git a/Tests/src/Algo/Methods/Schulze/SchulzeTest.php b/tests/src/Algo/Methods/Schulze/SchulzeTest.php similarity index 100% rename from Tests/src/Algo/Methods/Schulze/SchulzeTest.php rename to tests/src/Algo/Methods/Schulze/SchulzeTest.php diff --git a/Tests/src/Algo/Pairwise/FilteredPairwiseTest.php b/tests/src/Algo/Pairwise/FilteredPairwiseTest.php similarity index 100% rename from Tests/src/Algo/Pairwise/FilteredPairwiseTest.php rename to tests/src/Algo/Pairwise/FilteredPairwiseTest.php diff --git a/Tests/src/Algo/Pairwise/PairwiseTest.php b/tests/src/Algo/Pairwise/PairwiseTest.php similarity index 100% rename from Tests/src/Algo/Pairwise/PairwiseTest.php rename to tests/src/Algo/Pairwise/PairwiseTest.php diff --git a/Tests/src/Algo/Tools/CombinationsTest.php b/tests/src/Algo/Tools/CombinationsTest.php similarity index 100% rename from Tests/src/Algo/Tools/CombinationsTest.php rename to tests/src/Algo/Tools/CombinationsTest.php diff --git a/Tests/src/Algo/Tools/PermutationsTest.php b/tests/src/Algo/Tools/PermutationsTest.php similarity index 100% rename from Tests/src/Algo/Tools/PermutationsTest.php rename to tests/src/Algo/Tools/PermutationsTest.php diff --git a/Tests/src/Algo/Tools/VirtualVoteTest.php b/tests/src/Algo/Tools/VirtualVoteTest.php similarity index 100% rename from Tests/src/Algo/Tools/VirtualVoteTest.php rename to tests/src/Algo/Tools/VirtualVoteTest.php diff --git a/Tests/src/Algo/Tools/VotesDeductedApprovalsTest.php b/tests/src/Algo/Tools/VotesDeductedApprovalsTest.php similarity index 100% rename from Tests/src/Algo/Tools/VotesDeductedApprovalsTest.php rename to tests/src/Algo/Tools/VotesDeductedApprovalsTest.php diff --git a/Tests/src/CandidateTest.php b/tests/src/CandidateTest.php similarity index 100% rename from Tests/src/CandidateTest.php rename to tests/src/CandidateTest.php diff --git a/Tests/src/CondorcetTest.php b/tests/src/CondorcetTest.php similarity index 100% rename from Tests/src/CondorcetTest.php rename to tests/src/CondorcetTest.php diff --git a/Tests/src/CondorcetUtilTest.php b/tests/src/CondorcetUtilTest.php similarity index 100% rename from Tests/src/CondorcetUtilTest.php rename to tests/src/CondorcetUtilTest.php diff --git a/Tests/src/CondorcetVersionTest.php b/tests/src/CondorcetVersionTest.php similarity index 100% rename from Tests/src/CondorcetVersionTest.php rename to tests/src/CondorcetVersionTest.php diff --git a/Tests/src/Console/Commands/ConverterCommandTest.php b/tests/src/Console/Commands/ConverterCommandTest.php similarity index 100% rename from Tests/src/Console/Commands/ConverterCommandTest.php rename to tests/src/Console/Commands/ConverterCommandTest.php diff --git a/Tests/src/Console/Commands/ElectionCommandTest.php b/tests/src/Console/Commands/ElectionCommandTest.php similarity index 100% rename from Tests/src/Console/Commands/ElectionCommandTest.php rename to tests/src/Console/Commands/ElectionCommandTest.php diff --git a/Tests/src/Console/Commands/files/data.candidates b/tests/src/Console/Commands/files/data.candidates similarity index 100% rename from Tests/src/Console/Commands/files/data.candidates rename to tests/src/Console/Commands/files/data.candidates diff --git a/Tests/src/Console/Commands/files/data.votes b/tests/src/Console/Commands/files/data.votes similarity index 100% rename from Tests/src/Console/Commands/files/data.votes rename to tests/src/Console/Commands/files/data.votes diff --git a/Tests/src/Console/Commands/files/fromDavidHillExpectedFile.cvotes b/tests/src/Console/Commands/files/fromDavidHillExpectedFile.cvotes similarity index 100% rename from Tests/src/Console/Commands/files/fromDavidHillExpectedFile.cvotes rename to tests/src/Console/Commands/files/fromDavidHillExpectedFile.cvotes diff --git a/Tests/src/Console/Commands/files/fromDebianExpectedFile.cvotes b/tests/src/Console/Commands/files/fromDebianExpectedFile.cvotes similarity index 100% rename from Tests/src/Console/Commands/files/fromDebianExpectedFile.cvotes rename to tests/src/Console/Commands/files/fromDebianExpectedFile.cvotes diff --git a/Tests/src/ConstraintTest.php b/tests/src/ConstraintTest.php similarity index 100% rename from Tests/src/ConstraintTest.php rename to tests/src/ConstraintTest.php diff --git a/Tests/src/DataManager/ArrayManagerTest.php b/tests/src/DataManager/ArrayManagerTest.php similarity index 100% rename from Tests/src/DataManager/ArrayManagerTest.php rename to tests/src/DataManager/ArrayManagerTest.php diff --git a/Tests/src/DataManager/DataHandlerDrivers/PdoDriver/PdoHandlerDriverTest.php b/tests/src/DataManager/DataHandlerDrivers/PdoDriver/PdoHandlerDriverTest.php similarity index 100% rename from Tests/src/DataManager/DataHandlerDrivers/PdoDriver/PdoHandlerDriverTest.php rename to tests/src/DataManager/DataHandlerDrivers/PdoDriver/PdoHandlerDriverTest.php diff --git a/Tests/src/DataManager/DataHandlerDrivers/WoollyDriver/WoollyDriverTest.php b/tests/src/DataManager/DataHandlerDrivers/WoollyDriver/WoollyDriverTest.php similarity index 100% rename from Tests/src/DataManager/DataHandlerDrivers/WoollyDriver/WoollyDriverTest.php rename to tests/src/DataManager/DataHandlerDrivers/WoollyDriver/WoollyDriverTest.php diff --git a/Tests/src/DataManager/VotesManagerTest.php b/tests/src/DataManager/VotesManagerTest.php similarity index 100% rename from Tests/src/DataManager/VotesManagerTest.php rename to tests/src/DataManager/VotesManagerTest.php diff --git a/Tests/src/ElectionData/serialized_election_v3.2.0.txt b/tests/src/ElectionData/serialized_election_v3.2.0.txt similarity index 100% rename from Tests/src/ElectionData/serialized_election_v3.2.0.txt rename to tests/src/ElectionData/serialized_election_v3.2.0.txt diff --git a/Tests/src/ElectionTest.php b/tests/src/ElectionTest.php similarity index 100% rename from Tests/src/ElectionTest.php rename to tests/src/ElectionTest.php diff --git a/Tests/src/ResultTest.php b/tests/src/ResultTest.php similarity index 100% rename from Tests/src/ResultTest.php rename to tests/src/ResultTest.php diff --git a/Tests/src/Throwable/CondorcetInternal/CondorcetInternalErrorTest.php b/tests/src/Throwable/CondorcetInternal/CondorcetInternalErrorTest.php similarity index 100% rename from Tests/src/Throwable/CondorcetInternal/CondorcetInternalErrorTest.php rename to tests/src/Throwable/CondorcetInternal/CondorcetInternalErrorTest.php diff --git a/Tests/src/Timer/TimerTest.php b/tests/src/Timer/TimerTest.php similarity index 100% rename from Tests/src/Timer/TimerTest.php rename to tests/src/Timer/TimerTest.php diff --git a/Tests/src/Tools/Converters/CEF/CondorcetElectionFormatTest.php b/tests/src/Tools/Converters/CEF/CondorcetElectionFormatTest.php similarity index 100% rename from Tests/src/Tools/Converters/CEF/CondorcetElectionFormatTest.php rename to tests/src/Tools/Converters/CEF/CondorcetElectionFormatTest.php diff --git a/Tests/src/Tools/Converters/CivsFormatTest.php b/tests/src/Tools/Converters/CivsFormatTest.php similarity index 100% rename from Tests/src/Tools/Converters/CivsFormatTest.php rename to tests/src/Tools/Converters/CivsFormatTest.php diff --git a/Tests/src/Tools/Converters/CondorcetElectionFormatData/test1.cvotes b/tests/src/Tools/Converters/CondorcetElectionFormatData/test1.cvotes similarity index 100% rename from Tests/src/Tools/Converters/CondorcetElectionFormatData/test1.cvotes rename to tests/src/Tools/Converters/CondorcetElectionFormatData/test1.cvotes diff --git a/Tests/src/Tools/Converters/CondorcetElectionFormatData/test2.cvotes b/tests/src/Tools/Converters/CondorcetElectionFormatData/test2.cvotes similarity index 100% rename from Tests/src/Tools/Converters/CondorcetElectionFormatData/test2.cvotes rename to tests/src/Tools/Converters/CondorcetElectionFormatData/test2.cvotes diff --git a/Tests/src/Tools/Converters/CondorcetElectionFormatData/test3.cvotes b/tests/src/Tools/Converters/CondorcetElectionFormatData/test3.cvotes similarity index 100% rename from Tests/src/Tools/Converters/CondorcetElectionFormatData/test3.cvotes rename to tests/src/Tools/Converters/CondorcetElectionFormatData/test3.cvotes diff --git a/Tests/src/Tools/Converters/DavidHillFormatTest.php b/tests/src/Tools/Converters/DavidHillFormatTest.php similarity index 100% rename from Tests/src/Tools/Converters/DavidHillFormatTest.php rename to tests/src/Tools/Converters/DavidHillFormatTest.php diff --git a/Tests/src/Tools/Converters/DebianData/leader2006_tally.txt b/tests/src/Tools/Converters/DebianData/leader2006_tally.txt similarity index 100% rename from Tests/src/Tools/Converters/DebianData/leader2006_tally.txt rename to tests/src/Tools/Converters/DebianData/leader2006_tally.txt diff --git a/Tests/src/Tools/Converters/DebianData/leader2007_tally.txt b/tests/src/Tools/Converters/DebianData/leader2007_tally.txt similarity index 100% rename from Tests/src/Tools/Converters/DebianData/leader2007_tally.txt rename to tests/src/Tools/Converters/DebianData/leader2007_tally.txt diff --git a/Tests/src/Tools/Converters/DebianData/leader2020_tally.txt b/tests/src/Tools/Converters/DebianData/leader2020_tally.txt similarity index 100% rename from Tests/src/Tools/Converters/DebianData/leader2020_tally.txt rename to tests/src/Tools/Converters/DebianData/leader2020_tally.txt diff --git a/Tests/src/Tools/Converters/DebianFormatTest.php b/tests/src/Tools/Converters/DebianFormatTest.php similarity index 100% rename from Tests/src/Tools/Converters/DebianFormatTest.php rename to tests/src/Tools/Converters/DebianFormatTest.php diff --git a/Tests/src/Tools/Converters/TidemanData/A1.HIL b/tests/src/Tools/Converters/TidemanData/A1.HIL similarity index 100% rename from Tests/src/Tools/Converters/TidemanData/A1.HIL rename to tests/src/Tools/Converters/TidemanData/A1.HIL diff --git a/Tests/src/Tools/Converters/TidemanData/A3.HIL b/tests/src/Tools/Converters/TidemanData/A3.HIL similarity index 100% rename from Tests/src/Tools/Converters/TidemanData/A3.HIL rename to tests/src/Tools/Converters/TidemanData/A3.HIL diff --git a/Tests/src/Tools/Converters/TidemanData/A60.HIL b/tests/src/Tools/Converters/TidemanData/A60.HIL similarity index 100% rename from Tests/src/Tools/Converters/TidemanData/A60.HIL rename to tests/src/Tools/Converters/TidemanData/A60.HIL diff --git a/Tests/src/Tools/Converters/TidemanData/A77.HIL b/tests/src/Tools/Converters/TidemanData/A77.HIL similarity index 100% rename from Tests/src/Tools/Converters/TidemanData/A77.HIL rename to tests/src/Tools/Converters/TidemanData/A77.HIL diff --git a/Tests/src/Tools/Randomizers/ArrayRandomizerTest.php b/tests/src/Tools/Randomizers/ArrayRandomizerTest.php similarity index 100% rename from Tests/src/Tools/Randomizers/ArrayRandomizerTest.php rename to tests/src/Tools/Randomizers/ArrayRandomizerTest.php diff --git a/Tests/src/Tools/Randomizers/VoteRandomizerTest.php b/tests/src/Tools/Randomizers/VoteRandomizerTest.php similarity index 100% rename from Tests/src/Tools/Randomizers/VoteRandomizerTest.php rename to tests/src/Tools/Randomizers/VoteRandomizerTest.php diff --git a/Tests/src/Utils/VoteEntryParserTest.php b/tests/src/Utils/VoteEntryParserTest.php similarity index 100% rename from Tests/src/Utils/VoteEntryParserTest.php rename to tests/src/Utils/VoteEntryParserTest.php diff --git a/Tests/src/Utils/VoteUtilTest.php b/tests/src/Utils/VoteUtilTest.php similarity index 100% rename from Tests/src/Utils/VoteUtilTest.php rename to tests/src/Utils/VoteUtilTest.php diff --git a/Tests/src/VoteTest.php b/tests/src/VoteTest.php similarity index 100% rename from Tests/src/VoteTest.php rename to tests/src/VoteTest.php