/** * @test * @expectedException \InvalidArgumentException */ public function invokeByNonCreate() { Factory::nonExisting('test'); }