예제 #1
0
 /**
  * @expectedException \Box\Spout\Common\Exception\UnsupportedTypeException
  *
  * @return void
  */
 public function testCreateWriterShouldThrowWithUnsupportedType()
 {
     WriterFactory::create('unsupportedType');
 }
예제 #2
0
 public function testGetDefaultWriterEmpty()
 {
     $writerFactory = new WriterFactory();
     $this->assertNull($writerFactory->getDefaultWriter());
 }
예제 #3
0
파일: client.php 프로젝트: JJmaz/dp
<?php

include_once './Factory/WriterFactory.class.php';
$php = WriterFactory::create('php');
//$txt = WriterFactory::create('txt');
echo $php->writeHelloWorld();
예제 #4
0
 /**
  * 
  */
 protected function initWriter()
 {
     $this->_writer = WriterFactory::createFromFile($this->getType(), $this->source->getPath(), $this->getOptions());
 }