From 4e1dcac9ea6e97d74173438ef8e5cce942781de4 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Sat, 24 Jan 2015 10:43:29 +0100 Subject: [PATCH] Add missing test case --- tests/ExporterTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/ExporterTest.php b/tests/ExporterTest.php index 7b1ee09..ac24d81 100644 --- a/tests/ExporterTest.php +++ b/tests/ExporterTest.php @@ -318,6 +318,11 @@ EOF; ); } + public function testNonObjectCanBeReturnedAsArray() + { + $this->assertEquals(array(true), $this->exporter->toArray(true)); + } + private function trimNewline($string) { return preg_replace('/[ ]*\n/', "\n", $string);