Abel Hoogeveen
bc6136525b
The Factory class is the central point for class communication in FuzeWorks. When someone needs to load, for instance, the layout class, one has to do the following: $factory = Factory::getInstance(); $layout = $factory->layout; The Factory class allows the user to replace dependencies on the fly. It is possible for a class to replace a dependency, like Logger, on the fly by calling the $factory->newInstance('Logger'); or the $factory->setInstance('Logger', $object); This allows for creative ways to do dependency injection, or keep classes separated. It is also possible to load a cloned instance of the Factory class, so that all properties are independant as well, all to suit your very needs.
24 lines
883 B
XML
24 lines
883 B
XML
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.5/phpunit.xsd"
|
|
bootstrap="autoload.php"
|
|
convertErrorsToExceptions="true"
|
|
convertNoticesToExceptions="true"
|
|
convertWarningsToExceptions="true"
|
|
stopOnError="false"
|
|
stopOnFailure="false"
|
|
stopOnIncomplete="false"
|
|
stopOnSkipped="false"
|
|
colors="true">
|
|
|
|
<testsuites>
|
|
<testsuite name="Core Functionality">
|
|
<directory>.</directory>
|
|
</testsuite>
|
|
</testsuites>
|
|
|
|
<logging>
|
|
<log type="json" target="../build/phpunit/logfile.json"/>
|
|
<log type="junit" target="../build/phpunit/logfile.xml" logIncompleteSkipped="false"/>
|
|
<log type="testdox-html" target="../build/phpunit/testdox.html"/>
|
|
<log type="testdox-text" target="../build/phpunit/testdox.txt"/>
|
|
</logging>
|
|
</phpunit> |