Create the persistence layer

+1

On Wed, Dec 24, 2014 at 8:09 AM, Jefersson Nathan
<notifications@github.com> wrote:

>> +        $phrases = $this->relational;
>> +
>> +        $this->assertEquals(
>> +            $expectedPhrase,
>> +            $phrases->findOneRandom()
>> +        );
>> +        $this->assertEquals(
>> +            $expectedPhrase,
>> +            $phrases->findOneRandom(),
>> +            'Only one phrase is present on the list, so it should be the only "random" option.'
>> +        );
>> +    }
>> +
>> +    public function testFindOneRandomWithPhrasesInTheTableReturnsFromTheList()
>> +    {
>> +        $list = [
> We need a internal method to storage that phrases and reuse that. May be we can use the [PhrasesTestAsset\ConsumedData](https://github.com/malukenho/phrases/blob/master/tests/PhrasesTestAsset/ConsumedData.php) do to that.
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/malukenho/phrases/pull/19/files#r22251059