Skip to content

Commit a72d055

Browse files
authored
Merge pull request #142 from MageTest/develop
Stable 4.0 release
2 parents bcb188e + 55daaa4 commit a72d055

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+387
-1834
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
vendor
1+
vendor/
2+
composer.lock
23
bin
34
.idea/
45
public

.travis.yml

-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
language: php
22

33
php:
4-
- 5.3
5-
- 5.4
6-
- 5.5
74
- 5.6
85
- 7.0
96
- hhvm
107

118
matrix:
129
allow_failures:
13-
- php: 7.0
1410
- php: hhvm
1511

1612
before_script:

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -65,23 +65,23 @@ It’s valid to assume that StoryBDD and SpecBDD used together are a very effect
6565
MageSpec has been developed as PhpSpec extension which means that it depends on it and that we need to tell PhpSpec to load the extension for us. In order to do that we have to create a file in our project root called phpspec.yml and add the following content to it:
6666

6767
```yml
68-
extensions: [MageTest\PhpSpec\MagentoExtension\Extension]
68+
extensions:
69+
MageTest\PhpSpec\MagentoExtension\Extension: ~
6970
```
7071
7172
However that's not enough. Due to the unusual and non-standard convention used by Magento to store controllers, models, helper and so on, MageSpec implement a custom PhpSpec locator service. Such a locator has to be properly configured accordingly to our project setup which means we need also to add some 'mage_locator' configuration as following:
7273
7374
```yml
74-
extensions: [MageTest\PhpSpec\MagentoExtension\Extension]
75-
mage_locator:
76-
spec_prefix: 'spec'
77-
src_path: 'public/app/code'
78-
spec_path: 'spec/public/app/code'
79-
code_pool: 'community'
75+
extensions:
76+
MageTest\PhpSpec\MagentoExtension\Extension:
77+
mage_locator:
78+
src_path: public/app/code
79+
spec_path: spec/public/app/code
8080
```
8181
8282
Currently the mage_locator supports four options:
8383
84-
- namespace (default ''): The base namespace for our soruce code
84+
- namespace (default ''): The base namespace for our source code
8585
- spec_prefix (default 'spec'): The namespace prefix which will be used to namespace your specs based on your source code namespace
8686
- src_path (default 'src'): The relative path of your source code
8787
- spec_path (default '.'): The relative path of your specs

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"type": "library",
66
"license": "MIT",
77
"require": {
8-
"phpspec/phpspec": "~2.5.0",
8+
"phpspec/phpspec": "^3.0",
99
"symfony/dependency-injection": "~2.1",
1010
"symfony/config": "~2.1",
1111
"shanethehat/pretty-xml": "~1.0.2"
1212
},
1313
"require-dev": {
1414
"magetest/magento": "~1.8.1.0",
1515
"behat/behat": "~3.0",
16-
"bossa/phpspec2-expect": "~1.0"
16+
"phpunit/phpunit": "^4.0|^5.0"
1717
},
1818
"config": {
1919
"bin-dir": "bin"

0 commit comments

Comments
 (0)