Skip to content

Commit

Permalink
Merge pull request #3 from open-source-contributions/test_enhancement
Browse files Browse the repository at this point in the history
Test enhancement
  • Loading branch information
mgrajcarek authored Mar 2, 2020
2 parents 53b1186 + d71a40a commit 9d65c62
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ return PhpCsFixer\Config::create()
->in(__DIR__.DIRECTORY_SEPARATOR.'tests')
)
->setRiskyAllowed(true)
->setUsingCache(true);
->setUsingCache(true);
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,22 @@ sudo: false
php:
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4

## Build matrix for lowest and highest possible targets
matrix:
include:
- php: 7.0
env: dependencies=lowest
- php: 7.1
env: dependencies=lowest
- php: 7.2
env: dependencies=lowest
- php: 7.3
env: dependencies=lowest
- php: 7.4
env: dependencies=highest

## Update composer and run the appropriate composer command
Expand All @@ -20,4 +29,4 @@ before_script:
- if [ -z "$dependencies" ]; then composer install; fi;
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest -n; fi;
- if [ "$dependencies" = "highest" ]; then composer update -n; fi;
- composer show -i
- composer show -i
2 changes: 1 addition & 1 deletion tests/DictionaryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class DictionaryTest extends TestCase
*/
private $dictionary;

public function setup()
protected function setUp()
{
$this->dictionary = new Dictionary('23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz');
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Number/BigInt/ConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ConverterTest extends TestCase
*/
private $converter;

public function setup()
protected function setUp()
{
$this->converter = new Converter();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ShortenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ShortenerTest extends TestCase
*/
private $shortener;

public function setup()
protected function setUp()
{
$this->shortener = new Shortener(
Dictionary::createUnmistakable(),
Expand Down

0 comments on commit 9d65c62

Please sign in to comment.