Use PHPUnit built in data provider

PSR-0 is deprecated since 2014-10-21, see http://www.php-fig.org/psr/psr-0/
Yes you can do that.

Le dimanche 7 décembre 2014, Edouard <notifications@github.com> a écrit :

> In tests/ChunkDecoder/IcaoChunkDecoderTest.php:
>
> > +use MetarDecoder\ChunkDecoder\IcaoChunkDecoder;
> > +
> > +class IcaoChunkDecoderTest extends \PHPUnit_Framework_TestCase
> > +{
> > +    private $decoder;
> > +
> > +    public function setup()
> > +    {
> > +        $this->decoder = new IcaoChunkDecoder();
> > +    }
> > +
> > +    /**
> > +     * @param string $chunk
> > +     * @param string $icao
> > +     * @param string $remaining
> > +     * @dataProvider getChunk
>
> OK I get the idea, and I like the way it avoids the need for a loop in the
> test
> Still, I really find interesting to declare the dataset in another place +
> with another format for better accessibilty to non-dev. Could we imagine
> that I call my csv loader inside the phpunit loader ? (getChunk, etc...)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/inouire/php-metar-decoder/pull/1/files#r21427553>.
>


-- 
*---Benjamin Grandfond*
benjamin <benjaming@theodo.fr>.grandfond@gmail.com
06 84 38 77 12
http://www.b <http://www.theodo.fr>enjamingrandfond.fr
<http://www.benjamingrandfond.fr>
http://www.parisstreetpingpong.fr