/** * @expectedException \InvalidArgumentException * @expectedExceptionMessage ClassName must be string */ public function testFactoryNotString() { ObjectFactory::factory(123); }