Search found 434 matches

by mattsches
Tue Aug 13, 2013 5:48 pm
Forum: Development
Topic: PHPUnit and Plugin Development
Replies: 4
Views: 5686

Re: PHPUnit and Plugin Development

I can only speak for myself - I simply don't have the time for it; while writing unit tests in new environments is great because it helps your workflow, writing them for large existing projects can be a PITA. Thx for your reply, I totally understand that. I tried to wrap my head around what the nl2...
by mattsches
Tue Aug 13, 2013 1:07 pm
Forum: Development
Topic: PHPUnit and Plugin Development
Replies: 4
Views: 5686

Re: PHPUnit and Plugin Development

*bump* As Timbalu currently (and correctly) pointed out, I didn't get a lot of reactions to this. I've been asking myself: why? Unit tests have been an essential part of every project I've been working on over the last years. And rightly so. Yet I know that there are still developers out there who r...
by mattsches
Tue Aug 13, 2013 12:35 pm
Forum: Generelles in Deutsch
Topic: Welche Plugins speichern in Datenbank? Übersicht schaffen
Replies: 31
Views: 14149

Re: Welche Plugins speichern in Datenbank? Übersicht schaffe

@Matsches Gute Idee, Punkte für eine Checkliste zu sammeln! Was ist ein CLI-Tool? Das ist ein Programm, das auf der Kommandozeile ausgeführt wird, unter Linux also in einer Shell. Ich entwickle das aktuell, um gewisse Administrations-Aufgaben für Serendipity durchführen zu können, ohne den Browser ...
by mattsches
Tue Aug 13, 2013 9:21 am
Forum: Generelles in Deutsch
Topic: Welche Plugins speichern in Datenbank? Übersicht schaffen
Replies: 31
Views: 14149

Re: Welche Plugins speichern in Datenbank? Übersicht schaffe

Etwas Offtopic: Ich erlaube mir mal, ein paar der in diesem Thread genannten Funktionalitäten/Anforderungen auf meine ToDo-Liste für Metatron zu schreiben :D Für mich hört sich das nach einem ziemlich sinnvollen Einsatz-Szenario für das CLI-Tool an: Der Admin beim Hoster sollte ja die entsprechenden...
by mattsches
Mon Aug 12, 2013 9:47 pm
Forum: Bugs
Topic: PHP 5.5 / nl2br plugin / preg_replace() /e modifier
Replies: 12
Views: 10223

Re: PHP 5.5 / nl2br plugin / preg_replace() /e modifier

Yes sure, unit test would be great to have here. I never really understood why you didn't get any feedback on your " unit tests for plugins " thread. Me neither. This here is a perfect example of why unit tests are useful, I guess… Thanks for the feedback :wink: Do you mean somehow like t...
by mattsches
Mon Aug 12, 2013 6:56 pm
Forum: Bugs
Topic: PHP 5.5 / nl2br plugin / preg_replace() /e modifier
Replies: 12
Views: 10223

Re: PHP 5.5 / nl2br plugin / preg_replace() /e modifier

Problem is, I have multiple versions of PHP running and I can switch between them using phpenv . But I haven't managed to make this work with Apache. That's why I cannot test it in a browser, but only using the shell. Unit tests would be great in this case :? If I find the time, I will go ahead and ...
by mattsches
Mon Aug 12, 2013 3:31 pm
Forum: Bugs
Topic: PHP 5.5 / nl2br plugin / preg_replace() /e modifier
Replies: 12
Views: 10223

Re: PHP 5.5 / nl2br plugin / preg_replace() /e modifier

Ok, I tested it, the deprecation warning is gone :D However, I'm not sure your code does what it's supposed to do because I simply do not understand what the plugin does (i.e. I'm too lazy/busy to read and comprehend all the code, sorry). If you can give me any examples of what both $text and $buf m...
by mattsches
Sun Aug 11, 2013 11:40 pm
Forum: Bugs
Topic: PHP 5.5 / nl2br plugin / preg_replace() /e modifier
Replies: 12
Views: 10223

Re: PHP 5.5 / nl2br plugin / preg_replace() /e modifier

I just compiled PHP 5.5.1 .. will try to test your code tomorrow. Stay tuned!
by mattsches
Sat Aug 10, 2013 8:12 pm
Forum: Upcoming Serendipity Features
Topic: [2.0] Use new database Layer?
Replies: 17
Views: 43692

Re: [2.0] Use new database Layer?

Using bundled_libs instead of vendors would be great It's easier than I thought, and as easy to overlook in the docs :wink: { "repositories": [ { "type": "composer", "url": "http://packages.zendframework.com/" } ], "require": { "php&q...
by mattsches
Sat Aug 10, 2013 12:54 pm
Forum: Generelles in Deutsch
Topic: MySQL ==> PDO
Replies: 17
Views: 8566

Re: MySQL ==> PDO

Ich bin immer noch verwirrt und versuche das daher mal aufzudröseln. MySQL und SQLite sind grundsätzlich verschieden Datenbanktypen bzw. Datenbankmanagementsysteme (DBMS). MySQL ist ein Datenbankserver, der zusätzlich zum Webserver läuft, und in der PHP-Welt wohl die am meisten verwendete Lösung dar...
by mattsches
Sat Aug 10, 2013 12:33 pm
Forum: Upcoming Serendipity Features
Topic: [2.0] Use new database Layer?
Replies: 17
Views: 43692

Re: [2.0] Use new database Layer?

Ok, I tested it and it looks good so far (using the Mysqli driver), but I've already found some problems. There was a typo in your Gist in the parameters for the Zend\Db\Adapter, and I also had to add the charset, too, because otherwise my Umlauts were wrong ;) See my fork of your Gist here . Apart ...
by mattsches
Thu Aug 08, 2013 5:23 pm
Forum: Generelles in Deutsch
Topic: Youtube-Videos werden plötzlich nicht mehr angezeigt
Replies: 23
Views: 9447

Re: Youtube-Videos werden plötzlich nicht mehr angezeigt

Das liegt vermutlich an dem "alten" YouTube-Einbettungscode. Kannst du es bitte mal mit dem neuen Code versuchen: <iframe width="540" height="304" src="//www.youtube.com/embed/mHjssdNNzP0" frameborder="0" allowfullscreen></iframe> Wir haben ein ähnli...
by mattsches
Wed Aug 07, 2013 12:04 pm
Forum: Bugs
Topic: plugin_api.inc.php on line 1625
Replies: 30
Views: 20443

Re: plugin_api.inc.php on line 1625

Timbalu wrote:I really wonder why it errors here, in the eventData if.
It's because the key 'property' doesn't exist here, that's why PHP issues a warning here.

Maybe $eventData[0] is a string?
As of PHP 5.4, string offsets should be an integer or an integer like string, otherwise the result will be a warning.
by mattsches
Wed Aug 07, 2013 10:54 am
Forum: Generelles in Deutsch
Topic: Serendipity und Composer
Replies: 48
Views: 23694

Re: Serendipity und Composer

Ich poste den Link mal in diesen Thread, obwohl er irgendwie offtopic ist: Wordpress: A New Frontier for Core Development

Kurzzusammenfassung:
  • Unit Tests für den core
  • Unit Tests für JavaScript
  • Travis CI und Composer werden genutzt
  • Build-Prozess mit Grunt (node.js)
by mattsches
Sat Aug 03, 2013 4:46 pm
Forum: Development
Topic: Idea: S9y CLI tool
Replies: 27
Views: 21289

Re: Idea: S9y CLI tool

To extend the userbase for testing, you might need to add a dummy description on how to use it for what in detail here, since not everybody is knowing the usage and possible benefits. This starts telling, that it is used to install or administrate Serendipity by CLI console with some very simple co...