TheSeer\phpDox\Factory::getGenericInstance
Signature
protected function getGenericInstance(string
$class,
array
$params )
Parameters
$class
—
string
$params
—
array
Returns
Errors/Exceptions
-
FactoryException
Test Coverage
Information
- Coverage: 8/8 Lines (100%)
- Tests: 8
- Passed: 8 (100%)
Tests
- [ PASSED ] — TheSeer\phpDox\Tests\Unit\FactoryTest::testGetInstanceForClass
- [ PASSED ] — TheSeer\phpDox\Tests\Unit\FactoryTest::testGetInstanceForClassWithParameterArray
- [ PASSED ] — TheSeer\phpDox\Tests\Unit\FactoryTest::testGetInstanceForClassWithParameterString
- [ PASSED ] — TheSeer\phpDox\Tests\Unit\FactoryTest::testGetInstanceForFactory
- [ PASSED ] — TheSeer\phpDox\Tests\Unit\FactoryTest::testgetGenericInstance with data set "class with no arguments"
- [ PASSED ] — TheSeer\phpDox\Tests\Unit\FactoryTest::testgetGenericInstance with data set "class with array as argument"
- [ PASSED ] — TheSeer\phpDox\Tests\Unit\FactoryTest::testgetGenericInstanceExpectingFactoryException with data set "not instanciable"
- [ PASSED ] — TheSeer\phpDox\Tests\Unit\FactoryTest::testgetGenericInstanceExpectingFactoryException with data set "no constructor"