/**
  * @expectedException InvalidArgumentException
  */
 public function testException()
 {
     StaticFactory::factory('');
 }
 /**
  * @dataProvider getTypeList
  */
 public function testCreation($type)
 {
     $obj = StaticFactory::factory($type);
     $this->assertInstanceOf('DesignPatterns\\Creational\\StaticFactory\\FormatterInterface', $obj);
 }