Skip to content

Commit 76a232e

Browse files
committed
reorganise test fixture directories
Files containing JSON encoded tests fixtures and their fixture loader classes have been moved to the Xabbuh\XApi\CommonTests\Fixture namespace. PHP fixture classes have been moved to the Xabbuh\XApi\DataFixtures namespaces. Thus, they can be packaged separately to be reused in the different xAPI packages. The Common subtree cannot be pushed until the data fixtures package has been created. Otherwise, the tests executed on this isolated subtree would break since the data fixture classes could not be found.
1 parent 56132aa commit 76a232e

32 files changed

+19
-372
lines changed

Test/Fixture/ActivityFixtures.php

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

Test/Fixture/ActorFixtures.php

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

Test/Fixture/DocumentFixtures.php

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

Test/Fixture/StatementFixtures.php

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

Test/Fixture/StatementResultFixtures.php

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

Test/Fixture/ActivityJsonFixtures.php renamed to Tests/Fixtures/ActivityJsonFixtures.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Xabbuh\XApi\Common\Test\Fixture;
12+
namespace Xabbuh\XApi\Common\Tests\Fixtures;
1313

1414
/**
1515
* JSON encoded activity fixtures.

Test/Fixture/ActorJsonFixtures.php renamed to Tests/Fixtures/ActorJsonFixtures.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Xabbuh\XApi\Common\Test\Fixture;
12+
namespace Xabbuh\XApi\Common\Tests\Fixtures;
1313

1414
/**
1515
* JSON encoded actor fixtures.

Test/Fixture/DocumentJsonFixtures.php renamed to Tests/Fixtures/DocumentJsonFixtures.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Xabbuh\XApi\Common\Test\Fixture;
12+
namespace Xabbuh\XApi\Common\Tests\Fixtures;
1313

1414
/**
1515
* JSON encoded document fixtures.

0 commit comments

Comments
 (0)