Skip to content

Commit

Permalink
1.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mwjames committed Aug 2, 2016
1 parent 975979b commit 72a30b7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,17 @@ The recommended installation method for this library is to add it as dependency
```json
{
"require": {
"onoi/message-reporter": "~1.1"
"onoi/message-reporter": "~1.2"
}
}
```

## Usage

The message reporter specifies `MessageReporter` as an interface for all interactions with a set of supporting classes:
The message reporter specifies `MessageReporter` and `MessageReporterAware` as an interface for all interactions with a set of supporting classes:
- `MessageReporterFactory`
- `ObservableMessageReporter`
- `NullMessageReporter`
- `MessageReporterAware`
- `SpyMessageReporter`

```php
Expand Down
19 changes: 14 additions & 5 deletions tests/phpunit/MessageReporterFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

/**
* @covers \Onoi\MessageReporter\MessageReporterFactory
*
* @group onoi-message-reporter
*
* @license GNU GPL v2+
Expand Down Expand Up @@ -46,24 +45,34 @@ public function testClear() {
);
}

public function testNewNullMessageReporter() {
public function testCanConstructNullMessageReporter() {

$instance = new MessageReporterFactory();
$instance = new MessageReporterFactory();

$this->assertInstanceOf(
'\Onoi\MessageReporter\NullMessageReporter',
$instance->newNullMessageReporter()
);
}

public function testNewObservableMessageReporter() {
public function testCanConstructObservableMessageReporter() {

$instance = new MessageReporterFactory();
$instance = new MessageReporterFactory();

$this->assertInstanceOf(
'\Onoi\MessageReporter\ObservableMessageReporter',
$instance->newObservableMessageReporter()
);
}

public function testCanConstructSpyMessageReporter() {

$instance = new MessageReporterFactory();

$this->assertInstanceOf(
'\Onoi\MessageReporter\SpyMessageReporter',
$instance->newSpyMessageReporter()
);
}

}

0 comments on commit 72a30b7

Please sign in to comment.