Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
],
"require": {
"php": ">=5.3.0",
"php-xapi/model": "^0.1.0",
"php-xapi/model": "^0.2.0@dev",
"symfony/config": "~2.3",
"symfony/validator": "^2.6.2|^3.0"
},
"require-dev": {
"doctrine/annotations": "~1.0",
"php-xapi/test-fixtures": "^0.1.0",
"php-xapi/test-fixtures": "dev-model-v2",
"symfony/property-access": "~2.3"
},
"conflict": {
Expand All @@ -37,7 +37,13 @@
},
"extra": {
"branch-alias": {
"dev-master": "0.1.x-dev"
"dev-master": "0.2.x-dev"
}
}
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/xabbuh/test-fixtures"
}
]
}
9 changes: 9 additions & 0 deletions metadata/InverseFunctionalIdentifier.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping
http://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd">

<class name="Xabbuh\XApi\Model\InverseFunctionalIdentifier">
</class>
</constraint-mapping>
5 changes: 3 additions & 2 deletions tests/StatementValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Xabbuh\XApi\Validator\Tests;

use Xabbuh\XApi\DataFixtures\ActorFixtures;
use Xabbuh\XApi\DataFixtures\StatementFixtures;
use Xabbuh\XApi\Model\Activity;
use Xabbuh\XApi\Model\Agent;
Expand All @@ -26,14 +27,14 @@ public function getObjectsToValidate()
{
$validStatement = new Statement(
'12345678-1234-5678-8234-567812345678',
new Agent(),
ActorFixtures::getAgent(),
new Verb('the-verb-id'),
new Activity()
);

$statementWithNonUuidId = new Statement(
'foo',
new Agent(),
ActorFixtures::getAgent(),
new Verb('the-verb-id'),
new Activity()
);
Expand Down