Got it, is let run at start and letgo run at end


----- Reply message -----
From: "Chris Sedlmayr" <notifications@github.com>
To: "infinitytracking/infinity-common" <infinity-common@noreply.github.com>
Cc: "Thomas Parrott" <thomas.parrott@infinitycloud.com>
Subject: [infinity-common] Adds initial commit of Http Request class (#10)
Date: Fri, Nov 1, 2013 12:10




In spec/Infinity/Common/Http/RequestSpec.php:

> @@ -0,0 +1,125 @@
> +<?php
> +
> +namespace spec\Infinity\Common\Http;
> +
> +use PhpSpec\ObjectBehavior;
> +use Prophecy\Argument;
> +
> +class RequestSpec extends ObjectBehavior
> +{
> +    public function __construct()


You should use the let and letGo methods to prepare for a test, then the state is restored before each test, rather than once per Spec class

-
Reply to this email directly or view it on GitHub<https://github.com/infinitytracking/infinity-common/pull/10/files#r7367755>.