Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.

Commit c39fd19

Browse files
committed
Fix session case extension; Add package composer.json
1 parent fa5f18d commit c39fd19

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed

composer.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "mgatner/ci-module-tests",
3+
"description": "Testing scaffold for PHPUnit tests in CodeIgniter 4",
4+
"keywords": [
5+
"codeigniter",
6+
"codeigniter4",
7+
"phpunit",
8+
"tests",
9+
"modules",
10+
"coverage"
11+
],
12+
"homepage": "https://github.com/mgatner/ci-module-tests",
13+
"license": "MIT",
14+
"authors": [
15+
{
16+
"name": "Matthew Gatner",
17+
"email": "mgatner@tattersoftware.com",
18+
"homepage": "https://tattersoftware.com",
19+
"role": "Developer"
20+
}
21+
],
22+
"repositories": [
23+
{
24+
"type": "vcs",
25+
"url": "https://github.com/codeigniter4/CodeIgniter4"
26+
}
27+
],
28+
"require": {
29+
"php" : "^7.0"
30+
},
31+
"require-dev": {
32+
"phpunit/phpunit" : "^7.0",
33+
"mockery/mockery": "^1.0",
34+
"codeigniter4/codeigniter4": "dev-develop"
35+
},
36+
"autoload": {
37+
"psr-4": {
38+
"MGatner\\CIModuleTests\\": "src"
39+
}
40+
},
41+
"autoload-dev": {
42+
"psr-4": {
43+
"CIModuleTests\\Support\\": "tests/_support"
44+
}
45+
},
46+
"scripts": {
47+
"test": "phpunit",
48+
"post-update-cmd": [
49+
"composer dump-autoload"
50+
]
51+
}
52+
}

src/tests/_support/SessionTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use CodeIgniter\Session\Handlers\ArrayHandler;
44
use Tests\Support\Session\MockSession;
55

6-
class SessionTestCase extends \CodeIgniter\Test\CIDatabaseTestCase
6+
class SessionTestCase extends \CodeIgniter\Test\CIUnitTestCase
77
{
88
/**
99
* @var SessionHandler

0 commit comments

Comments
 (0)