File tree Expand file tree Collapse file tree 8 files changed +28
-14
lines changed Expand file tree Collapse file tree 8 files changed +28
-14
lines changed Original file line number Diff line number Diff line change 1
1
CHANGELOG
2
2
=========
3
3
4
+ 0.2.0
5
+ -----
6
+
7
+ * changed base namespace of all classes from ` Xabbuh\XApi\Storage\Doctrine ` to
8
+ ` XApi\Repository\Doctrine `
9
+
4
10
* added compatibility for version 0.2 of ` php-xapi/repository-api `
5
11
6
12
0.1.0
Original file line number Diff line number Diff line change 9
9
* file that was distributed with this source code.
10
10
*/
11
11
12
- namespace Xabbuh \ XApi \Storage \Doctrine \Repository ;
12
+ namespace XApi \Repository \Doctrine \Repository ;
13
13
14
14
use XApi \Repository \Api \Mapping \MappedStatement ;
15
15
Original file line number Diff line number Diff line change 9
9
* file that was distributed with this source code.
10
10
*/
11
11
12
- namespace Xabbuh \ XApi \Storage \Doctrine \Repository ;
12
+ namespace XApi \Repository \Doctrine \Repository ;
13
13
14
14
use XApi \Repository \Api \StatementRepository as BaseStatementRepository ;
15
15
use XApi \Repository \Api \Mapping \MappedStatement ;
Original file line number Diff line number Diff line change 9
9
* file that was distributed with this source code.
10
10
*/
11
11
12
- namespace Xabbuh \ XApi \Storage \Doctrine \Tests \Functional ;
12
+ namespace XApi \Repository \Doctrine \Tests \Functional ;
13
13
14
14
use Doctrine \Common \Persistence \ObjectManager ;
15
- use Xabbuh \XApi \Storage \Doctrine \Repository \MappedStatementRepository ;
16
- use Xabbuh \XApi \Storage \Doctrine \Repository \StatementRepository ;
17
15
use XApi \Repository \Api \Test \Functional \StatementRepositoryTest as BaseStatementRepositoryTest ;
16
+ use XApi \Repository \Doctrine \Repository \MappedStatementRepository ;
17
+ use XApi \Repository \Doctrine \Repository \StatementRepository ;
18
18
19
19
/**
20
20
* @author Christian Flothmann <[email protected] >
Original file line number Diff line number Diff line change 9
9
* file that was distributed with this source code.
10
10
*/
11
11
12
- namespace Xabbuh \ XApi \Storage \Doctrine \Tests \Unit \Repository ;
12
+ namespace XApi \Repository \Doctrine \Tests \Unit \Repository ;
13
13
14
14
use Xabbuh \XApi \DataFixtures \StatementFixtures ;
15
- use Xabbuh \XApi \Storage \Doctrine \Repository \MappedStatementRepository ;
16
15
use XApi \Repository \Api \Mapping \MappedStatement ;
16
+ use XApi \Repository \Doctrine \Repository \MappedStatementRepository ;
17
17
18
18
/**
19
19
* @author Christian Flothmann <[email protected] >
@@ -54,7 +54,7 @@ public function testStatementDocumentIsPersisted()
54
54
->objectManager
55
55
->expects ($ this ->once ())
56
56
->method ('persist ' )
57
- ->with ($ this ->isInstanceOf ('\Xabbuh\ XApi\Storage \Api\Mapping\MappedStatement ' ))
57
+ ->with ($ this ->isInstanceOf ('\XApi\Repository \Api\Mapping\MappedStatement ' ))
58
58
;
59
59
60
60
$ mappedStatement = MappedStatement::createFromModel (StatementFixtures::getMinimalStatement ());
Original file line number Diff line number Diff line change 9
9
* file that was distributed with this source code.
10
10
*/
11
11
12
- namespace Xabbuh \ XApi \Storage \Doctrine \Tests \Unit \Repository ;
12
+ namespace XApi \Repository \Doctrine \Tests \Unit \Repository ;
13
13
14
14
use Xabbuh \XApi \DataFixtures \StatementFixtures ;
15
15
use Xabbuh \XApi \DataFixtures \VerbFixtures ;
16
16
use Xabbuh \XApi \Model \StatementsFilter ;
17
- use Xabbuh \XApi \Storage \Doctrine \Repository \StatementRepository ;
18
17
use XApi \Repository \Api \Mapping \MappedStatement ;
18
+ use XApi \Repository \Doctrine \Repository \StatementRepository ;
19
19
20
20
/**
21
21
* @author Christian Flothmann <[email protected] >
22
22
*/
23
23
class StatementRepositoryTest extends \PHPUnit_Framework_TestCase
24
24
{
25
25
/**
26
- * @var \PHPUnit_Framework_MockObject_MockObject|\Xabbuh\ XApi\Storage \Doctrine\Repository\MappedStatementRepository
26
+ * @var \PHPUnit_Framework_MockObject_MockObject|\XApi\Repository \Doctrine\Repository\MappedStatementRepository
27
27
*/
28
28
private $ mappedStatementRepository ;
29
29
@@ -110,11 +110,11 @@ public function testSaveWithoutFlush()
110
110
}
111
111
112
112
/**
113
- * @return \PHPUnit_Framework_MockObject_MockObject|\Xabbuh\ XApi\Storage \Doctrine\Repository\MappedStatementRepository
113
+ * @return \PHPUnit_Framework_MockObject_MockObject|\XApi\Repository \Doctrine\Repository\MappedStatementRepository
114
114
*/
115
115
protected function createMappedStatementRepositoryMock ()
116
116
{
117
- return $ this ->getMock ('\Xabbuh\ XApi\Storage \Doctrine\Repository\MappedStatementRepository ' );
117
+ return $ this ->getMock ('\XApi\Repository \Doctrine\Repository\MappedStatementRepository ' );
118
118
}
119
119
120
120
/**
Original file line number Diff line number Diff line change
1
+ UPGRADE
2
+ =======
3
+
4
+ Upgrading from 0.1 to 0.2
5
+ -------------------------
6
+
7
+ The base namespace was changed from ` Xabbuh\XApi\Storage\Doctrine ` to
8
+ ` XApi\Repository\Doctrine ` .
Original file line number Diff line number Diff line change 23
23
},
24
24
"autoload" : {
25
25
"psr-4" : {
26
- "Xabbuh \\ XApi\\ Storage \\ Doctrine\\ " : " "
26
+ "XApi\\ Repository \\ Doctrine\\ " : " "
27
27
}
28
28
},
29
29
"extra" : {
You can’t perform that action at this time.
0 commit comments