public function testFromString() { $data = 'name;value' . "\n" . 'Foo;1' . "\n" . 'Bar;2' . "\n" . 'Baz;3' . "\n"; $items = $this->reader->fromString($data); $this->assertCount(3, $items); $this->assertEquals('Foo', $items[0]['name']); $this->assertEquals(1, $items[0]['value']); }