Hi all,
The error reporting server is based on cakePHP which is licensed under MIT license [0]. It is compatible with GPL, the license under which phpMyAdmin is licensed.
Under which license shall we license the code that is added to create the error reporting server? Both licensing under GPL or MIT is a possibility. It makes sense to license under GPL because phpMyAdmin itself is licensed under GPL. But it might be easier to use the MIT license, especially for files with mixed copyright (original cakePHP files being modified creating the error reporting server).
BTW : Conservancy allows us to license under the MIT license.
Anyway, there should be a license file (LICENSE and/or COPYING) in the root dir of error reporting server repo. And the files added to create the error reporting server should contain a header indicating the licensing info.
[0] http://opensource.org/licenses/mit-license.php
Le 2013-07-30 13:03, Dieter Adriaenssens a écrit :
Hi all,
The error reporting server is based on cakePHP which is licensed under MIT license [0]. It is compatible with GPL, the license under which phpMyAdmin is licensed.
Under which license shall we license the code that is added to create the error reporting server? Both licensing under GPL or MIT is a possibility. It makes sense to license under GPL because phpMyAdmin itself is licensed under GPL. But it might be easier to use the MIT license, especially for files with mixed copyright (original cakePHP files being modified creating the error reporting server).
BTW : Conservancy allows us to license under the MIT license.
Anyway, there should be a license file (LICENSE and/or COPYING) in the root dir of error reporting server repo. And the files added to create the error reporting server should contain a header indicating the licensing info.
When must we decide about this? Can it wait until the team meeting?
2013/7/31 Marc Delisle marc@infomarc.info:
Le 2013-07-30 13:03, Dieter Adriaenssens a écrit :
Hi all,
The error reporting server is based on cakePHP which is licensed under MIT license [0]. It is compatible with GPL, the license under which phpMyAdmin is licensed.
Under which license shall we license the code that is added to create the error reporting server? Both licensing under GPL or MIT is a possibility. It makes sense to license under GPL because phpMyAdmin itself is licensed under GPL. But it might be easier to use the MIT license, especially for files with mixed copyright (original cakePHP files being modified creating the error reporting server).
BTW : Conservancy allows us to license under the MIT license.
Anyway, there should be a license file (LICENSE and/or COPYING) in the root dir of error reporting server repo. And the files added to create the error reporting server should contain a header indicating the licensing info.
When must we decide about this? Can it wait until the team meeting?
I guess it can wait until the team meeting. For now, mohamed added a license file with the MIT license, but it can be changed later.
Hi all,
I am writing unit test cases for DBI classes. in the code base: [1], including DBI class: * DBIMysql.class.php * DBIMysqli.class.php
But I have no idea how to test them. two methods: 1. Mock built-in PHP DB client API ( ig: mysql_connect) they call PHP DB client API finally, but I don't know how I can mock this kind of built-in functions
2. DB real operations If try to test with real data, I think It is not accessible, because I need to connect to DB with username and password.
so I think method 1 is more flexible, Can someone give me some advice? thanks
[1] https://github.com/phpmyadmin/phpmyadmin/tree/master/libraries/dbi
Adam
Hi
Dne Wed, 31 Jul 2013 23:50:33 +0800 adam adamgsoc2013@gmail.com napsal(a):
I am writing unit test cases for DBI classes. in the code base: [1], including DBI class:
- DBIMysql.class.php
- DBIMysqli.class.php
But I have no idea how to test them. two methods:
- Mock built-in PHP DB client API ( ig: mysql_connect)
they call PHP DB client API finally, but I don't know how I can mock this kind of built-in functions
You can use runkit to replace them for testing.
Hi Michal,
Hi
Dne Wed, 31 Jul 2013 23:50:33 +0800 adam adamgsoc2013@gmail.com napsal(a):
I am writing unit test cases for DBI classes. in the code base: [1], including DBI class:
- DBIMysql.class.php
- DBIMysqli.class.php
But I have no idea how to test them. two methods:
- Mock built-in PHP DB client API ( ig: mysql_connect)
they call PHP DB client API finally, but I don't know how I can mock this kind of built-in functions
You can use runkit to replace them for testing.
thanks for your suggestion. I should install runkit on my dev box firstly. I will send out pull requests when testing finished on my dev box. thanks
Adam