<?php

namespace GoPay;

class FactoryTest extends \PHPUnit_Framework_TestCase
{
    public function testTravisShouldFail()
    {
        assertThat(1+1, is(3));
    }

    /** @dataProvider provideFactoryMethod */
    public function testShouldBuildPayments($method)
    {
        $payments = call_user_func($method, ['irrelevant config']);
        assertThat($payments, anInstanceOf('GoPay\Payments'));
    }
    
    public function provideFactoryMethod()
    {
        return [
            'function' => ['GoPay\payments'],
            'class' => [['GoPay\Api', 'payments']],
        ];
    }
}

<?php

namespace GoPay;

class FactoryTest extends \PHPUnit_Framework_TestCase
{
    /** @dataProvider provideFactoryMethod */
    public function testShouldBuildPayments($method)
    {
        $payments = call_user_func($method, ['irrelevant config']);
        assertThat($payments, anInstanceOf('GoPay\Payments'));
    }
    
    public function provideFactoryMethod()
    {
        return [
            'function' => ['GoPay\payments'],
            'class' => [['GoPay\Api', 'payments']],
        ];
    }
}

Revert "CI - add failing test"
Revert "CI - add failing test"

This reverts commit 912137a843cc2ba922b3759bf11bba86094783df.
