最近想用一下PHPUnit来做单元测试。在网上找到了一些资料,还没来得及整理,先贴出来。
PHPUnit: http://phpunit.de/manual/current/en/test-doubles.html
Mock使用进阶: http://www.cnblogs.com/bourneli/archive/2012/09/08/2676981.html
最近想用一下PHPUnit来做单元测试。在网上找到了一些资料,还没来得及整理,先贴出来。
PHPUnit: http://phpunit.de/manual/current/en/test-doubles.html
Mock使用进阶: http://www.cnblogs.com/bourneli/archive/2012/09/08/2676981.html
httpd-2.4.4
./configure --enable-so --enable-deflate=shared --enable-ssl=shared --enable-dav=shared --enable-vhost-alias=shared --enable-rewrite=shared --with-mpm=worker
php-5.5.0
./configure --prefix=/usr/local/php-5.5.0 --with-apxs2=/usr/local/httpd-2.4.4/bin/apxs --with-openssl --with-pcre-regex --with-zlib --enable-bcmath --with-bz2 --enable-calendar --with-curl --enable-exif --enable-ftp --with-gd --with-gettext --with-mhash --enable-intl --enable-mbstring --with-mcrypt --with-mysql --with-mysqli --enable-opcache --enable-pcntl --with-pdo-mysql --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-pear
mysql-5.5.32
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql-5.5.32 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci