コード例 #1
0
ファイル: WriterFactoryTest.php プロジェクト: cheaterBY/spout
 /**
  * @expectedException \Box\Spout\Common\Exception\UnsupportedTypeException
  *
  * @return void
  */
 public function testCreateWriterShouldThrowWithUnsupportedType()
 {
     WriterFactory::create('unsupportedType');
 }
コード例 #2
0
ファイル: client.php プロジェクト: JJmaz/dp
<?php

include_once './Factory/WriterFactory.class.php';
$php = WriterFactory::create('php');
//$txt = WriterFactory::create('txt');
echo $php->writeHelloWorld();