Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toms Bēmis #37

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Toms Bēmis #37

wants to merge 23 commits into from

Conversation

tb18008
Copy link

@tb18008 tb18008 commented Aug 23, 2022

No description provided.

tb18008 added 23 commits August 16, 2022 10:33
 - MultiplesService.php with one function that always returns null;
 - Tests that go through arranging step but fail asserting;
 - (DEV) downgraded PHPUnit to solve "ReflectionClass::getMethods() expects" error.
 - expect the input number in the result, to see which number causes errors;
 - sorting the first two multipliers in combined_multiple_test;
 - converting expected results to arrays.
 - multiples function validates input;
 - returns all the multiplier outputs if input is 0;
 - returns one or many multiplier outputs of input number is a multiple;
 - returns input number if it is not a multiple of any of the multipliers.
 - Added new multiplier and expected output in automated tests;
 - Assertion fails when running single_multiple_test with multiplier 7;
 - Assertion fails when running combined_multiple_test (new multiplier output is missing from array).
 - OccurrencesService.php with one function that always returns null;
 - Tests that go through arranging step but fail asserting.
MultiplesService and OccurrencesService extends NumberService to use the same input number validation.
 - occurrences function validates input;
 - returns all the transformations if any of the digits of input number match the defined transformations.
…ses the same property. The service is the one place the transformations need to be edited when something changes.
… uses the same property. The service is the one place the transformations need to be edited when something changes.
 - New PositiveIntegerValidator for parent class;
 - MultiplesService and OccurrencesService can skip validation if the methods are used in an instance that does the validation (avoiding validation multiple times);
 - Step3Test.php unused values removed.
 - Feature test for IntegratedNumberService that fails asserting because of missing implementation;
 - IntegratedNumberService for combining Multiples and Occurrences.
 - multiples_and_occurrences function returns valid and tested results;
 - multiples_and_occurrences_test fix (for loop upper bound mistake).
 - MultiplesService and OccurrencesService contains methods, while child classes contains key value pairs for transformations;
 - New child classes for services (Multiples and Occurrences services for both FooBarQix and InfQixFoo steps);
 - IntegratedNumberService contains methods, while child classes contains specific service integrations (FooBarQixIntegratedNumberService integrates FooBarQix services and so on);

 - MultiplesTest and OccurrencesTest contains tests, while child classes initialize correct service in setUp;
 - New child tests for each step (MultiplesTest and OccurrencesTest for both FooBarQix and InfQixFoo steps);
 - IntegratedNumberServiceTest contains tests, while child classes only set up the associated services.

MultiplesTest no_transformation_test checks if the multiplier 1 exists to avoid risky tests without assertions.
MultiplesService and their children constructor sorts and reassigns the multiplier keys.
… Changing accessibility for IntegratedNumberServiceTest method contains_all_transform_digits (private -> protected).
 - InfQixFoo outputs are strings with semicolon separator;
 - Duplicate code fragments, needs refactoring;
 - Tests pass.
 - Duplicate code fragments removed;
 - Service and test parent classes have 'separator' property;
 - Service parent classes check for separator before formatting output;
 - Test parent classes check for separator before asserting expected output.
 - OccurrencesTest removes digits that are at the same time digit sum multipliers;
 - New property for InfQixFooIntegratedNumberService which associates digit sum multiplier with suffix to append at the end of the result;
 - New tests for InfQixFooIntegratedNumberService that fail asserting because the service is missing implementation that appends suffix.
 - New method for InfQixFooIntegratedNumberService, which uses output of multiples_and_occurrences and then modifies the result;
 - InfQixFooIntegratedNumberServiceTest tests both inherited method and the new method for appending suffix at the end of output.
 - New composer scripts for regular testing and testing with code coverage;
 - Code coverage report "High".
Sign up for free to 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.

1 participant