Skip to content

Commit

Permalink
Fix tests, by reverting to older phpunit behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesvdvreken committed Feb 22, 2016
1 parent 869f154 commit 0b1bfe2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/unit/Csv/ExporterTest.php
Expand Up @@ -5,10 +5,8 @@
use InvalidArgumentException;
use Madewithlove\Export\Csv\Exporter;
use Madewithlove\Export\Csv\Transformers\CallableTransformer;
use Madewithlove\Export\Csv\Transformers\JustHeaders;
use Madewithlove\Export\Csv\Transformers\WithHeadersDecorator;
use Madewithlove\Export\Exporter as ExporterContract;
use Prophecy\Call\Call;

class ExporterTest extends \PHPUnit_Framework_TestCase
{
Expand Down Expand Up @@ -65,12 +63,14 @@ public function exports_iterators()
$this->assertEquals("foo,bar\n", $export);
}

/** @test */
/**
* @test
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage Expected $items to be array or a \Traversable.
*/
public function fails_when_given_invalid_items()
{
// Arrange
$this->expectException(InvalidArgumentException::class);
$this->expectExceptionMessage('Expected $items to be array or a \Traversable.');

$exporter = new Exporter();

Expand Down

0 comments on commit 0b1bfe2

Please sign in to comment.