Commit Graph

44 Commits

Author SHA1 Message Date
7590e5bd6f Updated license headers of all updated files. 2016-08-07 13:22:08 +02:00
6f5378e43a Fixed #112.
Output is no longer sent to browser during unit testing.
2016-08-07 13:21:37 +02:00
87364d762d Fixed #113.
All exceptions have unit tests and some critical errors have been fixed.
2016-08-07 13:06:57 +02:00
158092d811 Fixed #110.
Critical errors are shown by Tracy and are now on top.
2016-08-07 13:03:07 +02:00
b205111e61 Changed license headers and version information.
Version 1.0.0 is now described.
2016-07-23 17:06:19 +02:00
cf7ec423a2 Disabled Modules system by default.
It is not stable, it will not be stable in a long while. For now it is deprecated. A newer better system shall replace it in the future.
2016-07-23 16:53:47 +02:00
23f56b524a Implemented Unit tests for Logger class.
Changed a few other classes since some unused functionality was removed.
2016-07-23 16:32:11 +02:00
07976216ba Implemented renewed model system.
Resolves #86
2016-07-19 16:31:06 +02:00
320edec16b Implemented a PSR-4 compliant scheme.
FuzeWorks can now be properly loaded by Composer, without any lost functionality.
2016-07-11 12:44:13 +02:00
d4b4dd5ff2 Added temp directory for unit tests.
Hopefully this resolves all problems in Gitlab
2016-07-09 13:11:57 +02:00
729ccac707 Logger is now fully functional. 2016-07-09 13:00:56 +02:00
7fc7d63179 Implemented renewed unit tests.
These now work in the new construction
2016-07-07 18:29:26 +02:00
440ead5784 Implemented Tracy/Debugger from the Nette framework.
This debugger allows for advanced debugging for both development and production environments.
This did however require the implementation of an ENVIRONMENT constant. This has been put in the index file. If no constant is set it will be set by the core class and the default is PRODUCTION.
Chances are that the location for this constant will move in the future.

There is also a proper way now that fatal errors will lead to a 500 error on the screen. This is either done by Tracy or FuzeWorks, depending on if Tracy is available.
2016-06-08 14:57:41 +02:00
7aff99c701 Implemented a few unit tests for the new classes. 2016-06-07 15:52:02 +02:00
8298975c98 Implemented renewed Routing and Output system.
Everything is in accordance with issue #89 and #90.
2016-06-07 15:12:35 +02:00
01491b7f65 Implemented xdebug in Gitlab CI and added code coverage systems
Code Coverage should now work properly.
2016-06-04 16:17:21 +02:00
5df6b733d0 Implemented many unit tests.
The following tests for classes have been implemented:
- Security
- Input
- Encryption Library
- Utf8

A mocking autoloader has been added (but is not yet configured correctly)
2016-06-02 23:57:23 +02:00
96ca890656 Finished the Library system
All unit tests have also been implemented.
Many bugs have been smashed with the mighty hammer.
2016-06-02 20:13:08 +02:00
ae94dca984 Removed deprecated methods from Factory.
All classes that use this have been changed.
2016-06-02 20:12:22 +02:00
ef82ea3463 Added new test for Config.
The test checks if instances from Config->getConfig() are the same.
2016-06-02 15:44:32 +02:00
53f597f947 Implemented a new system for Logging templates.
This allows the user to install new Logging templates that run in specific circumstances. By default the FuzeWorks default (as you already know it) template is installed, and a CLI one.

Closes #88
2016-06-02 15:19:31 +02:00
544a84434c Allowed the Factory class to be extended.
A class can now extend the Factory class and use all of its properties.
Properties like the layout system can be called like $this->layout, when extended. Just like the old days with the Bus abstract class.
Advantage of this system is that you don't require the use of extending the Factory class. Calling the factory for just one use is also possible.

Closes #93.
2016-06-02 13:57:32 +02:00
57c54b0126 Implemented simplified config class.
Now it only features one (simpler) ORM, which is the ConfigFileORM.
If a new type of config should be added, it should be done through models.

Unit tests for the basic config class have been implemented.
2016-06-01 16:03:53 +02:00
bc6136525b Implemented the Factory and the FactoryTest.
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.
2016-05-27 16:33:12 +02:00
5aa165d4a4 Implemented Helper Tests
As more helpers get added, more tests will get added
2016-05-27 14:38:28 +02:00
84432bf9a1 And commit 2, so the capitals are correct 2016-05-27 14:05:11 +02:00
358f064794 One commit to move the file, so we can lower the capitals 2016-05-27 14:03:33 +02:00
68afa1ef1b Implemented a (failed) config and a renewed Helpers class.
Helpers class is now fully supported by continuous integration.
2016-05-27 13:55:31 +02:00
0adcdb7449 Implemented new and renewed core tests.
The layout tests have been updated, and Core and events tests have been added.
2016-05-25 17:01:59 +02:00
4af73f3b58 Fixed existing tests.
Query and model tests are removed since they are no longer supported.
New tests will follow.
2016-05-25 14:28:57 +02:00
9f4742b063 Updated entire project to PSR2 code standard. Some classes still need to be moved around. 2016-05-07 19:22:09 +02:00
0910b30d93 Implemented some core changes to the Layout system 2016-01-23 14:06:16 +01:00
9127b440a5 Added the event_layoutLoadViewEventTest unit test. 2015-10-12 16:45:56 +01:00
102b35a96b Implemented unit tests for the layout manager. 2015-10-12 16:28:38 +01:00
9d665e2ae1 Many Misc jobs:
- Modules can now be loaded using routes by adding a routes[] array to the moduleInfo.php. When it matches, the module gets loaded, and a route() function in the main class gets called. (Fixes #79)
- Composer can now load from a different file
- License headers have been added to all core files (Fixes #66)
- Table model has been renamed to sqltable. Interpret model has been removed
- layoutLoadViewEvent added
- Controllers now extend the \FuzeWorks\ControllerAbstract class
- Controllers are now in the \Application\Controller namespace
- Models are now in the \Application\Model namespace
- Events are now in the \FuzeWorks\Event namespace
- Moved some classes in a different namespace for a better overview
- Events can now properly load function listeners (fixes #81)
- Documentation added to more classes. (Partially fixes #58)
- Added replace() command to DatabaseUtils Abstract Model
- Added more unit tests for router, query and events
2015-10-11 19:14:49 +01:00
5093f98c4b Started working on renewed Unit Tests. 2015-09-06 15:42:57 +02:00
f65635d8cb Fix for namespace clash with sections 2015-05-17 19:03:37 +02:00
bdf6b0244c Added Joins to the QueryBuilder 2015-05-14 13:30:40 +02:00
32b534d59a Merge branch 'ffnmaster/core-Renewed_Modules'
Conflicts:
	Core/System/class.core.php
2015-05-14 13:01:03 +02:00
71c9904746 The big great rewrite of modules. Hope it will merge well 2015-05-14 12:43:11 +02:00
26d06947ad Added new QueryTest for the newly made QueryBuilder 2015-05-06 21:38:31 +02:00
dd93772704 Router and Logger merge with GF, and many more CI Tests 2015-05-03 22:50:36 +02:00
c86822f99b Added multiple tests and started real continuous integration 2015-05-01 22:47:11 +02:00
ab1ee28e40 Started implementing Continuous Integration 2015-03-18 19:37:35 +01:00