Review: PHPUnit Essentials

I recently got my hands on the book “PHPUnit Essentials” and decided to do a review.

The book offers a wide variety of information about PHPUnit. At the very beginning it provides insights how to install PHPUnit and how to set up a development environment. Further, it elaborates on the question why to do tests and how to write code that can be tested easier. Finally it reaches its culmination with more business oriented techniques of “Functional Tests in the Browser using Selenium” and “Continuous Integration”.

Continue reading “Review: PHPUnit Essentials”

Create a private mediawiki with some public pages

Per site restriction is not possible by default in mediawiki, but there are many ways to create such environment mostly with using extensions. The most easy and flexible way without extensions is described on this page:

It’s simply done by editing the file include/Title.php and find the line that looks like this in the function userCanRead(). In my version 1.16 it looked minimal different than at the link example:

Replace them with the following lines:

Then you are able to use regular expressions in your $wgWhitelistRead which offers great opportunities.

The following code allows non-namespaced pages, Special:Search, Special:Categories pages and several Namespaces like: Help:*, Image:*, User:* and Category:* to be seen by anonymous users.

If you really have a private Wiki you might also want to remove Search and Categories, as they list also your private pages.

Master Thesis submitted

Finally submitted my master thesis. Have a look if you want: Online XML Editor Based On XML Schema

This master thesis introduces a mechanism of mapping XML Schema (XSD) to PHP. In the mapping process PHP classes are automatically generated which include all the functionality defined by the schema. The second achievement is an online syntax-directed editor based on the above defined mapping to friendly create Extensible Markup Language (XML) documents based on the mapped schema. In addition the editor offers several guidance mechanisms to create complex XML documents online.

Stay tuned for more updates soon.


Extending DOMNode

Sometimes you may think: Wouldn’t it be cool if I can extend DOMNode and since all other functions extend DOMNode, my custon functions will be available in every element?

The bad news, it will not work for DOMNode, but the other elements which extend from it.
Continue reading “Extending DOMNode”

Nun doch WordPress

Nachdem ich nun auch mal was posten wollte in meinem Blog habe ich festgestellt, dass es unter Drupal nicht so schön ist. Damit ich in meinem Post ein Bild integrieren kann, muss ich extra noch plugins installieren. Das kann ja wohl nicht sein, sowas sollte man doch erwarten. Naja der Umstieg auf wordpress fiel nicht so schwer, da ich ja nur einen Post hatte in Drupal 🙂

Auf den ersten Blick gefällts mir schon viel besser. Das erste Bild kommt in diesem Post noch nicht, aber die Möglichkeit besteht auf jeden fall schon gleich nach der installation.

Nun denn, stay tuned.