public function testReadWithPattern2() { $handler = new FileLib(TMP . 'test.txt', true); $pre = '2-33-44' . NL . '5-66-77'; //$pre = 'First, Last Name, Email'.PHP_EOL.'Example, Firsty, test@test.com'; $handler->write($pre); $handler->close(); $handler2 = new FileLib(TMP . 'test.txt', true); $is = $handler2->readWithPattern('%d-%d-%d'); $expected = [['2', '33', '44'], ['5', '66', '77']]; $status = $this->assertEquals($expected, $is); $this->_printArrays($status, $is, $expected, $pre); }