Skip to content

Commit 286003d

Browse files
committed
Update documentation
1 parent 14e0c89 commit 286003d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
All Notable changes to `Spark Plug` will be documented in this file
44

5-
## [0.4.0](https://github.com/rougin/spark-plug/compare/v0.2.0...v0.4.0) - 2016-03-26
5+
## [0.4.0](https://github.com/rougin/spark-plug/compare/v0.2.0...v0.4.0) - 2016-04-25
66

77
### Added
88
- `Instance::create`

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ $ composer require rougin/spark-plug
2222
### Basic Usage
2323

2424
``` php
25-
$codeIgniter = Rougin\SparkPlug\Instance::create();
25+
$ci = Rougin\SparkPlug\Instance::create();
2626

2727
// You can now use its instance
28-
$codeIgniter->load->model('foo');
28+
$ci->load->helper('inflector');
2929
```
3030

3131
### As a mock instance for unit testing
@@ -43,14 +43,15 @@ class SparkPlugTest extends \PHPUnit_Framework_TestCase
4343
// Path of your test application
4444
$appPath = __DIR__ . '/TestApp';
4545

46+
// Instance::create($appPath, $_SERVER, $GLOBALS)
4647
$ci = \Rougin\SparkPlug\Instance::create($appPath);
4748

4849
$this->assertInstanceOf('CI_Controller', $ci);
4950
}
5051
}
5152
```
5253

53-
**NOTE**: [rougin/codeigniter](https://github.com/rougin/codeigniter) and a test application directory are required to use it as a mock instance. Kindly check the [tests](https://github.com/rougin/spark-plug/tree/master/tests) directory for more information.
54+
**NOTE**: To create a mock instance, [rougin/codeigniter](https://github.com/rougin/codeigniter) and a test application directory are required. Kindly check the [tests](https://github.com/rougin/spark-plug/tree/master/tests) directory for more examples.
5455

5556
## Change Log
5657

0 commit comments

Comments
 (0)