Skip to content

Commit

Permalink
Merge 1205c39 into b98933b
Browse files Browse the repository at this point in the history
  • Loading branch information
mir2p committed Nov 1, 2020
2 parents b98933b + 1205c39 commit f8db431
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 24 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
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 f8db431

Please sign in to comment.