for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace spec\Xabbuh\XApi\Model;
use PhpSpec\ObjectBehavior;
use Xabbuh\XApi\Model\Activity;
use Xabbuh\XApi\Model\Agent;
use Xabbuh\XApi\Model\InverseFunctionalIdentifier;
use Xabbuh\XApi\Model\Verb;
class SubStatementSpec extends ObjectBehavior
{
function let()
$actor = new Agent(InverseFunctionalIdentifier::withMbox('mailto:[email protected]'));
$verb = new Verb('http://tincanapi.com/conformancetest/verbid', array('en-US' => 'test'));
$object = new Activity('http://tincanapi.com/conformancetest/activityid');
$this->beConstructedWith('16fd2706-8baf-433b-82eb-8c7fada847da', $actor, $verb, $object);
}
function it_is_an_xapi_object()
$this->shouldHaveType('Xabbuh\XApi\Model\Object');