for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace spec\Xabbuh\XApi\Serializer\Normalizer;
use PhpSpec\ObjectBehavior;
class ActorNormalizerSpec extends ObjectBehavior
{
function it_is_a_normalizer()
$this->shouldHaveType('Symfony\Component\Serializer\Normalizer\NormalizerInterface');
}
function it_is_a_denormalizer()
$this->shouldHaveType('Symfony\Component\Serializer\Normalizer\DenormalizerInterface');
function it_requires_an_iri_when_denormalizing_an_agent()
$this
->shouldThrow('\Symfony\Component\Serializer\Exception\InvalidArgumentException')
->during('denormalize', array(
array('objectType' => 'Agent'),
'Xabbuh\XApi\Model\Actor',
))
;