Skip to content

Commit 5d3b1e2

Browse files
committed
refactored
1 parent bed0532 commit 5d3b1e2

18 files changed

+1317
-1230
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
language: php
22

33
php:
4-
- 5.4
5-
- 5.5
6-
- 5.6
7-
- 7
4+
- 7.0
5+
- 7.1
6+
- 7.2
87

98
before_script:
109
- composer install

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## 1.0
4+
5+
* PHPUnit 6 support
6+
* Removed configuration section
7+
* Only properties marked with `@specify` annotation will be cloned in specify blocks.
8+
* Added `Codeception\Specify\ResultPrinter` to fix printing of nested examples.
9+
10+
### Upgrade Plan
11+
12+
1. Update to PHP7+ PHPUnit 6+
13+
2. Add to `phpunit.xml`
14+
315
#### 0.4.3
416

517
* Show example index on failure by @zszucs *2015-11-27*

README.md

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -152,43 +152,6 @@ class UserTest extends \PHPUnit_Framework_TestCase
152152

153153
## Exceptions
154154

155-
You can wait for exception thrown inside a block.
156-
157-
``` php
158-
<?php
159-
160-
$this->specify('404 if user does not exist', function() {
161-
$this->userController->show(999);
162-
}, ['throws' => 'NotFoundException']);
163-
164-
// alternatively
165-
$this->specify('404 if user does not exist', function() {
166-
$this->userController->show(999);
167-
}, ['throws' => new NotFoundException]);
168-
?>
169-
```
170-
171-
Also you can handle fails inside a block.
172-
173-
``` php
174-
<?php
175-
176-
$this->specify('this assertion is failing', function() {
177-
$this->assertEquals(2, 3+5);
178-
}, ['throws' => 'fail']);
179-
?>
180-
```
181-
182-
In both cases, you can optionally test the exception message
183-
184-
``` php
185-
<?php
186-
187-
$this->specify('some exception with a message', function() {
188-
throw new NotFoundException('my error message');
189-
}, ['throws' => ['NotFoundException', 'my error message']]);
190-
?>
191-
```
192155

193156
## Examples
194157

RoboFile.php

Lines changed: 0 additions & 51 deletions
This file was deleted.

composer.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@
66
"authors": [
77
{
88
"name": "Michael Bodnarchuk",
9-
"email": "davert.php@mailican.com"
9+
"email": "davert@codeception.com"
1010
}
1111
],
1212
"require": {
13-
"php": ">=5.4.0",
14-
"myclabs/deep-copy": "~1.1"
15-
},
16-
"require-dev": {
17-
"phpunit/phpunit": "~4.0"
13+
"php": ">=7.0.0",
14+
"myclabs/deep-copy": "~1.1",
15+
"phpunit/phpunit": "~6.0"
1816
},
1917
"autoload": {
2018
"psr-0": {

0 commit comments

Comments
 (0)