Skip to content

Commit 87f7522

Browse files
committed
Add copyright notes and license.md
1 parent 4d43db9 commit 87f7522

File tree

8 files changed

+83
-10
lines changed

8 files changed

+83
-10
lines changed

license.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2015 Jáchym Toušek (enumag@gmail.com)
2+
3+
Permission is hereby granted, free of charge, to any person
4+
obtaining a copy of this software and associated documentation
5+
files (the "Software"), to deal in the Software without
6+
restriction, including without limitation the rights to use,
7+
copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the
9+
Software is furnished to do so, subject to the following
10+
conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.

src/Connector/Nette.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
<?php
22

3+
/**
4+
* This file is part of the Arachne
5+
*
6+
* Copyright (c) Jáchym Toušek (enumag@gmail.com)
7+
*
8+
* For the full copyright and license information, please view the file license.md that was distributed with this source code.
9+
*/
10+
311
namespace Arachne\Codeception\Connector;
412

513
use Arachne\Codeception\Http\Request as HttpRequest;
614
use Arachne\Codeception\Http\Response as HttpResponse;
15+
use Exception;
716
use Nette\Application\Application;
817
use Nette\DI\Container;
918
use Nette\Http\IRequest;
@@ -51,7 +60,7 @@ public function doRequest($request)
5160
$httpRequest = $this->container->getByType(IRequest::class);
5261
$httpResponse = $this->container->getByType(IResponse::class);
5362
if (!$httpRequest instanceof HttpRequest || !$httpResponse instanceof HttpResponse) {
54-
throw new \Exception('Arachne\Codeception\DI\CodeceptionExtension is not used or conflicts with another extension.');
63+
throw new Exception('Arachne\Codeception\DI\CodeceptionExtension is not used or conflicts with another extension.');
5564
}
5665
$httpRequest->reset();
5766
$httpResponse->reset();
@@ -61,7 +70,7 @@ public function doRequest($request)
6170
$this->container->getByType(Application::class)->run();
6271
$content = ob_get_clean();
6372

64-
} catch (\Exception $e) {
73+
} catch (Exception $e) {
6574
ob_end_clean();
6675
throw $e;
6776
}

src/Console/RunTestInput.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
<?php
22

3+
/**
4+
* This file is part of the Arachne
5+
*
6+
* Copyright (c) Jáchym Toušek (enumag@gmail.com)
7+
*
8+
* For the full copyright and license information, please view the file license.md that was distributed with this source code.
9+
*/
10+
311
namespace Arachne\Codeception\Console;
412

513
use Symfony\Component\Console\Input\InputDefinition;

src/DI/CodeceptionExtension.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
<?php
22

3+
/**
4+
* This file is part of the Arachne
5+
*
6+
* Copyright (c) Jáchym Toušek (enumag@gmail.com)
7+
*
8+
* For the full copyright and license information, please view the file license.md that was distributed with this source code.
9+
*/
10+
311
namespace Arachne\Codeception\DI;
412

513
use Nette\DI\CompilerExtension;

src/Http/Response.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
<?php
22

3+
/**
4+
* This file is part of the Arachne
5+
*
6+
* Copyright (c) Jáchym Toušek (enumag@gmail.com)
7+
*
8+
* For the full copyright and license information, please view the file license.md that was distributed with this source code.
9+
*/
10+
311
namespace Arachne\Codeception\Http;
412

513
use Nette\Http\IResponse;
@@ -144,13 +152,6 @@ public function getHeaders()
144152
*/
145153
public function setCookie($name, $value, $time, $path = null, $domain = null, $secure = null, $httpOnly = null)
146154
{
147-
/*$maxAge = $time ? \Nette\Utils\DateTime::from($time)->format('U') : 0;
148-
$this->addHeader('Set-Cookie', rawurlencode($name) . '=' . rawurlencode($value)
149-
. (empty($maxAge) ? '' : '; Expires=' . gmdate('D, d-M-Y H:i:s', $maxAge) . ' GMT; Max-Age=' . $maxAge)
150-
. (empty($path) ? '' : '; Path=' . $path)
151-
. (empty($domain) ? '' : '; Domain=' . $domain)
152-
. (!$secure ? '' : '; Secure')
153-
. (!$httpOnly ? '' : '; HttpOnly'));*/
154155
return $this;
155156
}
156157

src/Module/Doctrine.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
<?php
22

3+
/**
4+
* This file is part of the Arachne
5+
*
6+
* Copyright (c) Jáchym Toušek (enumag@gmail.com)
7+
*
8+
* For the full copyright and license information, please view the file license.md that was distributed with this source code.
9+
*/
10+
311
namespace Arachne\Codeception\Module;
412

513
use Arachne\Codeception\Module\Nette;
614
use Codeception\Exception\ModuleConfigException;
715
use Codeception\Module;
816
use Codeception\TestCase;
917
use Doctrine\ORM\EntityManagerInterface;
18+
use PDOException;
1019

1120
class Doctrine extends Module
1221
{
@@ -28,7 +37,7 @@ public function _before(TestCase $test)
2837
$stmt->closeCursor();
2938
}
3039

31-
} catch (\PDOException $e) {
40+
} catch (PDOException $e) {
3241
throw new ModuleConfigException(__CLASS__, $e->getMessage(), $e);
3342
}
3443
}

src/Module/Nette.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
<?php
22

3+
/**
4+
* This file is part of the Arachne
5+
*
6+
* Copyright (c) Jáchym Toušek (enumag@gmail.com)
7+
*
8+
* For the full copyright and license information, please view the file license.md that was distributed with this source code.
9+
*/
10+
311
namespace Arachne\Codeception\Module;
412

513
use Arachne\Codeception\Connector\Nette as NetteConnector;

src/Tracy/Logger.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
<?php
22

3+
/**
4+
* This file is part of the Arachne
5+
*
6+
* Copyright (c) Jáchym Toušek (enumag@gmail.com)
7+
*
8+
* For the full copyright and license information, please view the file license.md that was distributed with this source code.
9+
*/
10+
311
namespace Arachne\Codeception\Tracy;
412

513
use Codeception\Events;

0 commit comments

Comments
 (0)