Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Commit

Permalink
Added namespace to PSR-4 autoloader (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Jul 22, 2020
1 parent 2800a9b commit cf40098
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 1 deletion.
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
],
"autoload": {
"psr-4": {
"": "src/"
"Neoflow\\Session\\": "src/Neoflow/Session/"
},
"autoload-dev": {
"psr-4": {
"Neoflow\\Session\\Test\\": "tests/"
}
}
},
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions tests/FlashTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace Neoflow\Session\Test;

use Middlewares\Utils\Dispatcher;
use Neoflow\Session\Flash;
use Neoflow\Session\FlashInterface;
Expand Down
2 changes: 2 additions & 0 deletions tests/SessionExceptionTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace Neoflow\Session\Test;

use Middlewares\Utils\Dispatcher;
use Neoflow\Session\Exception\SessionException;
use Neoflow\Session\Flash;
Expand Down
2 changes: 2 additions & 0 deletions tests/SessionMiddlewareTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace Neoflow\Session\Test;

use Middlewares\Utils\Dispatcher;
use Neoflow\Session\Middleware\SessionMiddleware;
use Neoflow\Session\Session;
Expand Down
3 changes: 3 additions & 0 deletions tests/SessionNotStartedTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php

namespace Neoflow\Session\Test;

use Neoflow\Session\Flash;
use Neoflow\Session\Session;
use PHPUnit\Framework\TestCase;
use RuntimeException;

class SessionNotStartedTest extends TestCase
{
Expand Down
3 changes: 3 additions & 0 deletions tests/SessionTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<?php

namespace Neoflow\Session\Test;

use Middlewares\Utils\Dispatcher;
use Neoflow\Session\Flash;
use Neoflow\Session\Middleware\SessionMiddleware;
use Neoflow\Session\Session;
use Neoflow\Session\SessionInterface;
use PHPUnit\Framework\TestCase;
use RuntimeException;

class SessionTest extends TestCase
{
Expand Down

0 comments on commit cf40098

Please sign in to comment.