Skip to content

Commit

Permalink
Merge 8d0e5d4 into b98933b
Browse files Browse the repository at this point in the history
  • Loading branch information
mir2p committed Nov 1, 2020
2 parents b98933b + 8d0e5d4 commit 33791b1
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 26 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -3,3 +3,5 @@
/node_modules
.DS_Store
/tests/coverage
/composer.lock
/.phpunit.result.cache
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -12,8 +12,8 @@ env:
matrix:
fast_finish: true
before_install:
- composer require "laravel/framework:${LARAVEL_VERSION}"
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer require "laravel/framework:${LARAVEL_VERSION}"
install:
- composer update --prefer-source --no-interaction --dev
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer update --prefer-source --no-interaction --dev
after_success:
- travis_retry php vendor/bin/coveralls
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -32,9 +32,9 @@
},
"require-dev" : {
"satooshi/php-coveralls": "^1.0",
"phpunit/phpunit" : "^6",
"mockery/mockery": "dev-master",
"diablomedia/phpunit-pretty-printer": "^2"
"phpunit/phpunit" : "~8.0",
"mockery/mockery": "1.3.*",
"diablomedia/phpunit-pretty-printer": "~4.0"
},
"autoload": {
"psr-4": { "Arbory\\Base\\": "src" },
Expand Down
1 change: 0 additions & 1 deletion phpunit.xml
Expand Up @@ -4,7 +4,6 @@
bootstrap="tests/bootstrap.php"
colors="true"
printerClass="DiabloMedia\PHPUnit\Printer\PrettyPrinter"
mapTestClassNameToCoveredClassName="true"
>
<logging>
<log type="coverage-html" target="tests/coverage/html" />
Expand Down
10 changes: 2 additions & 8 deletions tests/Admin/Form/Fields/Renderer/FileSizeTest.php
Expand Up @@ -25,19 +25,13 @@ final class FileSizeTest extends TestCase
*/
private $fileSize;

/**
* @return void
*/
protected function setUp()
protected function setUp(): void
{
$this->file = Mockery::mock(ArboryFile::class);
$this->fileSize = new FileSize($this->file);
}

/**
* @return void
*/
protected function tearDown()
protected function tearDown(): void
{
Mockery::close();
}
Expand Down
5 changes: 1 addition & 4 deletions tests/Html/Elements/ElementTest.php
Expand Up @@ -17,10 +17,7 @@ final class ElementTest extends TestCase
*/
private $attributes;

/**
* @return void
*/
protected function setUp()
protected function setUp(): void
{
$this->name = 'test';
$this->attributes = [
Expand Down
10 changes: 2 additions & 8 deletions tests/Services/FieldSetFieldFinderTest.php
Expand Up @@ -26,10 +26,7 @@ final class FieldSetFieldFinderTest extends TestCase
*/
private $model;

/**
* @return void
*/
protected function setUp()
protected function setUp(): void
{
app()->singleton(StyleManager::class, static function () {
$styles = [
Expand All @@ -50,10 +47,7 @@ protected function setUp()
$this->model->shouldReceive('toArray')->andReturn([]);
}

/**
* @return void
*/
protected function tearDown()
protected function tearDown(): void
{
Mockery::close();
}
Expand Down

0 comments on commit 33791b1

Please sign in to comment.