Alex\BehatLauncher\Behat\Run::normalize PHP Method

normalize() public method

public normalize ( Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer, $format = null, array $context = [] )
$normalizer Symfony\Component\Serializer\Normalizer\NormalizerInterface
$context array
    public function normalize(NormalizerInterface $normalizer, $format = null, array $context = array())
    {
        $result = array('id' => $this->getId(), 'title' => $this->getTitle(), 'projectName' => $this->getProjectName(), 'status' => $this->getStatus(), 'running' => $this->isRunning(), 'properties' => $this->getProperties(), 'count' => array('pending' => $this->countStatus('pending'), 'running' => $this->countStatus('running'), 'succeeded' => $this->countStatus('succeeded'), 'failed' => $this->countStatus('failed')), 'progress' => $this->getProgress());
        if (isset($context['run_details']) && $context['run_details']) {
            $result['units'] = $normalizer->normalize($this->getUnits());
        }
        return $result;
    }