/** * @expectedException LogicException * @expectedExceptionMessage The stream filter API can not be used */ public function testFailedprependStreamFilter() { $csv = new Reader(new SplTempFileObject()); $this->assertFalse($csv->isActiveStreamFilter()); $csv->prependStreamFilter('string.toupper'); }