File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 1
1
CHANGELOG
2
2
=========
3
3
4
+ 0.4.0
5
+ -----
6
+
7
+ * allow ` 2.x ` releases of the ` php-xapi/model ` package too
8
+
4
9
0.3.0
5
10
-----
6
11
Original file line number Diff line number Diff line change 12
12
],
13
13
"require" : {
14
14
"doctrine/common" : " ~2.4" ,
15
- "php-xapi/model" : " ^1.0" ,
16
- "php-xapi/repository-api" : " ^0.3" ,
15
+ "php-xapi/model" : " ^1.0 || ^2.0 " ,
16
+ "php-xapi/repository-api" : " ^0.3 || ^0.4 " ,
17
17
"ramsey/uuid" : " ^2.9"
18
18
},
19
19
"require-dev" : {
20
20
"php-xapi/test-fixtures" : " ^1.0"
21
21
},
22
+ "minimum-stability" : " dev" ,
22
23
"conflict" : {
23
24
"xabbuh/xapi-doctrine-storage" : " *"
24
25
},
34
35
},
35
36
"extra" : {
36
37
"branch-alias" : {
37
- "dev-master" : " 0.3 .x-dev"
38
+ "dev-master" : " 0.4 .x-dev"
38
39
}
39
40
}
40
41
}
Original file line number Diff line number Diff line change 11
11
12
12
namespace XApi \Repository \Doctrine \Tests \Unit \Repository ;
13
13
14
- use Rhumsaa \Uuid \Uuid ;
14
+ use Rhumsaa \Uuid \Uuid as RhumsaUuid ;
15
15
use Xabbuh \XApi \DataFixtures \StatementFixtures ;
16
16
use Xabbuh \XApi \DataFixtures \VerbFixtures ;
17
17
use Xabbuh \XApi \Model \StatementId ;
18
18
use Xabbuh \XApi \Model \StatementsFilter ;
19
+ use Xabbuh \XApi \Model \Uuid as ModelUuid ;
19
20
use XApi \Repository \Doctrine \Mapping \Statement as MappedStatement ;
20
21
use XApi \Repository \Doctrine \Repository \StatementRepository ;
21
22
@@ -42,7 +43,12 @@ protected function setUp()
42
43
43
44
public function testFindStatementById ()
44
45
{
45
- $ statementId = StatementId::fromUuid (Uuid::uuid4 ());
46
+ if (class_exists ('Xabbuh\XApi\Model\Uuid ' )) {
47
+ $ statementId = StatementId::fromUuid (ModelUuid::uuid4 ());
48
+ } else {
49
+ $ statementId = StatementId::fromUuid (RhumsaUuid::uuid4 ());
50
+ }
51
+
46
52
$ this
47
53
->mappedStatementRepository
48
54
->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments