Sonata\Exporter\Test\Writer\XlsWriterTest::testValidDataFormat PHP Метод

testValidDataFormat() публичный Метод

public testValidDataFormat ( )
    public function testValidDataFormat()
    {
        $writer = new XlsWriter($this->filename, false);
        $writer->open();
        $writer->write(array('john "2', 'doe', '1'));
        $writer->close();
        $expected = '<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name=ProgId content=Excel.Sheet><meta name=Generator content="https://github.com/sonata-project/exporter"></head><body><table><tr><td>john "2</td><td>doe</td><td>1</td></tr></table></body></html>';
        $this->assertEquals($expected, trim(file_get_contents($this->filename)));
    }