Skip to content

Commit

Permalink
Tests: polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Jan 2, 2024
1 parent 70af92a commit e38fc8f
Show file tree
Hide file tree
Showing 20 changed files with 29 additions and 31 deletions.
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -23,12 +23,12 @@ phpstan:

.PHONY: tests
tests:
vendor/bin/tester -s -p php --colors 1 -C tests/Cases
vendor/bin/codecept run

.PHONY: coverage
coverage:
ifdef GITHUB_ACTION
vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage coverage.xml --coverage-src src tests/Cases
vendor/bin/codecept run --coverage --coverage-xml
else
vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage coverage.html --coverage-src src tests/Cases
vendor/bin/codecept run --coverage --coverage-html
endif
2 changes: 1 addition & 1 deletion codeception.yml
@@ -1,4 +1,4 @@
namespace: Contributte\Tests
namespace: Tests
paths:
tests: tests
output: tests/_output
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Expand Up @@ -46,7 +46,9 @@
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests"
"Tests\\Testing\\": "tests/src",
"Tests\\Unit\\": "tests/unit",
"Tests\\Functional\\": "tests/functional"
}
},
"minimum-stability": "dev",
Expand Down
2 changes: 1 addition & 1 deletion tests/_support/AcceptanceTester.php
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

namespace Contributte\Tests;
namespace Tests;

use Codeception\Actor;

Expand Down
2 changes: 1 addition & 1 deletion tests/_support/FunctionalTester.php
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

namespace Contributte\Tests;
namespace Tests;

use Codeception\Actor;

Expand Down
2 changes: 1 addition & 1 deletion tests/_support/Helper/Acceptance.php
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

namespace Contributte\Tests\Helper;
namespace Tests\Helper;

use Codeception\Module;

Expand Down
2 changes: 1 addition & 1 deletion tests/_support/Helper/Functional.php
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

namespace Contributte\Tests\Helper;
namespace Tests\Helper;

use Codeception\Module;

Expand Down
2 changes: 1 addition & 1 deletion tests/_support/Helper/Unit.php
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

namespace Contributte\Tests\Helper;
namespace Tests\Helper;

use Codeception\Module;

Expand Down
2 changes: 1 addition & 1 deletion tests/_support/UnitTester.php
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

namespace Contributte\Tests;
namespace Tests;

use Codeception\Actor;

Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance.suite.yml
Expand Up @@ -9,5 +9,5 @@ modules:
enabled:
- PhpBrowser:
url: http://localhost/myapp
- Contributte\Tests\Helper\Acceptance
- Tests\Helper\Acceptance
step_decorators: ~
4 changes: 0 additions & 4 deletions tests/coveralls.yml

This file was deleted.

2 changes: 1 addition & 1 deletion tests/functional.suite.yml
Expand Up @@ -9,5 +9,5 @@ actor: FunctionalTester
modules:
enabled:
# add a framework module here
- Contributte\Tests\Helper\Functional
- Tests\Helper\Functional
step_decorators: ~
6 changes: 3 additions & 3 deletions tests/functional/LocalStorageTest.php
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

namespace Contributte\Imagist\Testing\Functional;
namespace Tests\Functional;

use Contributte\Imagist\Builder\LocalImageStorageBuilder;
use Contributte\Imagist\Entity\EmptyImage;
Expand All @@ -16,9 +16,9 @@
use Contributte\Imagist\PathInfo\PathInfoFactory;
use Contributte\Imagist\Resolver\DefaultImageResolvers\ScopeDefaultImageResolver;
use Contributte\Imagist\Scope\Scope;
use Contributte\Imagist\Testing\FileTestCase;
use Contributte\Imagist\Testing\Filter\ThumbnailFilter;
use Tests\Testing\Filter\ThumbnailFilter;
use Contributte\Imagist\Uploader\FilePathUploader;
use Tests\Testing\FileTestCase;

class LocalStorageTest extends FileTestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/TransactionTest.php
@@ -1,13 +1,13 @@
<?php declare(strict_types = 1);

namespace Contributte\Imagist\Testing\Functional;
namespace Tests\Functional;

use Contributte\Imagist\Builder\LocalImageStorageBuilder;
use Contributte\Imagist\Entity\StorableImage;
use Contributte\Imagist\ImageStorageInterface;
use Contributte\Imagist\Testing\FileTestCase;
use Contributte\Imagist\Transaction\TransactionFactoryInterface;
use Contributte\Imagist\Uploader\FilePathUploader;
use Tests\Testing\FileTestCase;

class TransactionTest extends FileTestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/src/FileTestCase.php
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

namespace Contributte\Imagist\Testing;
namespace Tests\Testing;

use Codeception\Test\Unit;
use Symfony\Component\Filesystem\Filesystem;
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Filter/ImagineThumbnailFilter.php
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

namespace Contributte\Imagist\Testing\Filter;
namespace Tests\Testing\Filter;

use Contributte\Imagist\Filter\FilterIdentifier;
use Contributte\Imagist\Filter\FilterInterface;
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Filter/ThumbnailFilter.php
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

namespace Contributte\Imagist\Testing\Filter;
namespace Tests\Testing\Filter;

use Contributte\Imagist\Filter\FilterIdentifier;
use Contributte\Imagist\Filter\FilterInterface;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit.suite.yml
Expand Up @@ -6,5 +6,5 @@ actor: UnitTester
modules:
enabled:
- Asserts
- Contributte\Tests\Helper\Unit
- Tests\Helper\Unit
step_decorators: ~
6 changes: 3 additions & 3 deletions tests/unit/FilterTest.php
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

namespace Contributte\Imagist\Testing\Unit;
namespace Tests\Unit;

use Contributte\Imagist\Bridge\Imagine\ImagineOperationProcessor;
use Contributte\Imagist\Bridge\Imagine\ImagineResourceFactory;
Expand All @@ -10,9 +10,9 @@
use Contributte\Imagist\Filter\Context\Context;
use Contributte\Imagist\Filter\FilterProcessor;
use Contributte\Imagist\PathInfo\PathInfoFactory;
use Contributte\Imagist\Testing\FileTestCase;
use Contributte\Imagist\Testing\Filter\ImagineThumbnailFilter;
use Contributte\Imagist\Uploader\FilePathUploader;
use Tests\Testing\FileTestCase;
use Tests\Testing\Filter\ImagineThumbnailFilter;

class FilterTest extends FileTestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/StringUploaderTest.php
@@ -1,9 +1,9 @@
<?php declare(strict_types = 1);

namespace Contributte\Imagist\Testing\Unit;
namespace Tests\Unit;

use Contributte\Imagist\Testing\FileTestCase;
use Contributte\Imagist\Uploader\StringUploader;
use Tests\Testing\FileTestCase;

class StringUploaderTest extends FileTestCase
{
Expand Down

0 comments on commit e38fc8f

Please sign in to comment.