Skip to content

Commit

Permalink
add namespaces to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
voda committed Apr 19, 2019
1 parent ebe734a commit bfc97ef
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
6 changes: 6 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
"autoload": {
"psr-4": {"Vodacek\\GettextExtractor\\" : "src"}
},
"autoload-dev": {
"psr-4": {
"Vodacek\\GettextExtractor\\Tests\\Unit\\": "tests/unit",
"Vodacek\\GettextExtractor\\Tests\\Integration\\": "tests/integration"
}
},
"bin": [
"gettext-extractor.php"
],
Expand Down
8 changes: 5 additions & 3 deletions tests/integration/NetteFormsTest.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
<?php
declare(strict_types=1);

namespace Vodacek\GettextExtractor\Tests\Integration;

use PHPUnit\Framework\TestCase;
use Vodacek\GettextExtractor as GE;
use Vodacek\GettextExtractor\NetteExtractor;

class NetteFormsTest extends TestCase {

/** @var GE\NetteExtractor */
/** @var NetteExtractor */
protected $object;

protected function setUp(): void {
$this->object = new GE\NetteExtractor('/dev/null');
$this->object = new NetteExtractor('/dev/null');
$this->object->setMeta('POT-Creation-Date', '2013-02-11T14:18:02+01:00');
}

Expand Down
3 changes: 3 additions & 0 deletions tests/unit/GettextExtractor/Filters/AFilterTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php
declare(strict_types=1);

namespace Vodacek\GettextExtractor\Tests\Integration;

use InvalidArgumentException;
use PHPUnit\Framework\TestCase;
use Vodacek\GettextExtractor as GE;

Expand Down
2 changes: 2 additions & 0 deletions tests/unit/GettextExtractor/Filters/FilterTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php
declare(strict_types=1);

namespace Vodacek\GettextExtractor\Tests\Integration;

use PHPUnit\Framework\TestCase;
use Vodacek\GettextExtractor as GE;

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/GettextExtractor/Filters/LatteFilterTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
declare(strict_types=1);

use Vodacek\GettextExtractor as GE;
namespace Vodacek\GettextExtractor\Tests\Integration;

require_once __DIR__ . '/FilterTest.php';
use Vodacek\GettextExtractor as GE;

class LatteFilterTest extends FilterTest {

Expand Down
2 changes: 2 additions & 0 deletions tests/unit/GettextExtractor/Filters/PHPFilterTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php
declare(strict_types=1);

namespace Vodacek\GettextExtractor\Tests\Integration;

use Vodacek\GettextExtractor as GE;

require_once __DIR__ . '/FilterTest.php';
Expand Down

0 comments on commit bfc97ef

Please sign in to comment.