Skip to content

Commit 5756935

Browse files
author
Florent Morselli
committed
Project updated
1 parent addbecc commit 5756935

26 files changed

+121
-584
lines changed

.gitignore

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

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Copyright (c) 2012 Anthon Pang
2+
Copyright (c) 2016 Florent Morselli
23

34
Permission is hereby granted, free of charge, to any person obtaining
45
a copy of this software and associated documentation files (the

README.md

Lines changed: 77 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,86 @@
1-
# DoctrineDataFixturesExtension
1+
Doctrine Fixtures Extension for Behat
2+
=====================================
23

3-
Increase feature test isolation by reloading ORM data fixtures between features.
4+
The extension increases feature test isolation by reloading ORM data fixtures between scenarios and features.
45

5-
## Documentation
6+
# Installation
67

7-
[Official documentation](http://extensions.behat.org/doctrine-data-fixtures/index.html)
8+
This extension requires:
89

9-
## Source
10+
* Behat 3.0+
11+
* Mink 1.4+
12+
* Doctrine ORM 2.x
13+
* [Symfony2Extension](http://extensions.behat.org/symfony2/)
1014

11-
[Github](https://github.com/vipsoft/DoctrineDataFixturesExtension)
15+
## Through Composer
1216

13-
## Copyright
17+
```sh
18+
composer require "behat-extension/doctrine-data-fixtures-extension"
19+
```
1420

15-
Copyright (c) 2012 Anthon Pang. See LICENSE for details.
21+
#Configuration
1622

17-
## Credits
23+
Activate extension in your **behat.yml** and define any fixtures to be loaded:
1824

19-
* Anthon Pang [robocoder](http://github.com/robocoder)
20-
* Konstantin Kudryashov [everzet](http://github.com/everzet) - init.php and build.php
21-
* [Others](https://github.com/vipsoft/DoctrineDataFixturesExtension/graphs/contributors)
25+
```yaml
26+
# behat.yml
27+
default:
28+
# ...
29+
extensions:
30+
BehatExtension\DoctrineDataFixturesExtension\Extension:
31+
lifetime: feature
32+
autoload: true
33+
directories: ~
34+
fixtures: ~
35+
```
36+
37+
When **lifetime** is set to "feature" (or unspecified), data fixtures are reloaded between feature files. Alternately,
38+
when **lifetime** is set to "scenario", data fixtures are reloaded between scenarios (i.e., increased
39+
test isolation at the expense of increased run time).
40+
41+
When **autoload** is true, the DoctrineDataFixtures extension will load the data fixtures for all
42+
registered bundles (similar to `app/console doctrine:fixtures:load`).
43+
44+
When **fixtures** is set and **autoload** is false, the DoctrineDataFixtures
45+
extension will load the specified fixture classes.
46+
47+
When **directories** is set and **autoload** is false, the DoctrineDataFixtures
48+
extension will load the data fixtures globed from the respective directories.
49+
50+
```yaml
51+
# behat.yml
52+
default:
53+
# ...
54+
extensions:
55+
BehatExtension\DoctrineDataFixturesExtension\Extension:
56+
lifetime: feature
57+
autoload: true
58+
directories:
59+
- /project/src/AcmeAnalytics/Tests/DataFixtures/ORM
60+
fixtures:
61+
- Acme\StoreBundle\DataFixture\ORM\Categories
62+
- Acme\StoreBundle\DataFixture\ORM\Apps
63+
- Acme\VendorBundle\DataFixture\ORM\Vendors
64+
```
65+
66+
# Limitations
67+
68+
When using the SqlLiteDriver, the .db file is cached to speed up reloading. You should periodically clear the cache as it does not detect changes to the data fixture contents because the hash is based on the collection of data fixture class names.
69+
70+
# Source
71+
72+
`Github <https://github.com/vipsoft/DoctrineDataFixturesExtension>`_
73+
74+
Forked from `Github <https://github.com/BehatExtension/DoctrineDataFixturesExtension>`_
75+
76+
# Copyright
77+
78+
* Copyright (c) 2012 Anthon Pang.
79+
* Copyright (c) 2016 Florent Morselli.
80+
81+
See [LICENSE](LICENSE) for details.
82+
83+
# Contributors
84+
85+
* Anthon Pang `(robocoder) <http://github.com/robocoder>`_
86+
* `Others <https://github.com/BehatExtension/DoctrineDataFixturesExtension/graphs/contributors>`_

autoload.php

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

behat.yml.dist

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

build.php

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

composer.json

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,36 @@
11
{
2-
"name": "vipsoft/doctrine-data-fixtures-extension",
2+
"name": "behat-extension/doctrine-data-fixtures-extension",
33
"type": "library",
44
"description": "Doctrine data fixtures extension for Behat",
55
"keywords": ["behat", "bdd", "doctrine", "data fixtures"],
6-
"homepage": "http://github.com/vipsoft/",
6+
"homepage": "http://github.com/BehatExtension/",
77
"license": "MIT",
88
"authors": [
9+
{
10+
"name": "Florent Morselli",
11+
"role": "developer"
12+
},
913
{
1014
"name": "Anthon Pang",
1115
"email": "[email protected]",
12-
"role": "developer"
16+
"role": "original developer"
1317
}
1418
],
1519
"require": {
1620
"php": ">=5.3.6",
17-
"behat/behat": "~3.0.6",
18-
"behat/symfony2-extension": "~2.0",
19-
"doctrine/data-fixtures": "~1.0"
20-
},
21-
"require-dev": {
22-
"phpunit/phpunit": "3.7.*",
23-
"doctrine/orm": "~2.2,>=2.2.3",
24-
"doctrine/doctrine-bundle": "~1.2"
21+
"behat/behat": "^3.0",
22+
"behat/symfony2-extension": "^2.0",
23+
"doctrine/data-fixtures": "^1.0"
2524
},
2625
"suggest": {
2726
"doctrine/migrations": "Uses DBAL to load versioned database schema and migration classes"
2827
},
2928
"autoload": {
30-
"psr-0": { "VIPSoft\\DoctrineDataFixturesExtension": "src/" }
29+
"psr-4": { "BehatExtension\\DoctrineDataFixturesExtension\\": "src/" }
3130
},
3231
"extra": {
3332
"branch-alias": {
34-
"dev-master": "3.0.x-dev",
35-
"dev-2.5": "2.5.x-dev"
33+
"dev-master": "1.0.x-dev"
3634
}
3735
}
3836
}

doc/index.rst

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

init.php

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

0 commit comments

Comments
 (0)