Jump to:

655 Posts in 2094 Topics by 163 members

Releases and Announcements

SilverStripe Forums » Releases and Announcements » a bunch of new modules

Latest news about the SilverStripe software.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 2789 Views
  • swaiba
    Avatar
    Forum Moderator
    1786 Posts

    Re: a bunch of new modules Link to this post

    just checked mine and...

    C:\wamp\bin\php\php5.2.6>pear -V
    PEAR Version: 1.8.1
    PHP Version: 5.2.6
    Zend Engine Version: 2.2.0
    Running on: Windows NT BARRY-PC 6.1 build 7600

    sorry, that is as much as I have got notes wise, I remember it being a right old pain to get the tests running (which is why I have notes), but a pain I only had to go through once...

  • J2-Paul
    Avatar
    Community Member
    51 Posts

    Re: a bunch of new modules Link to this post

    Had a look through and looks like some great work. However, i am having an issue checking out the repository.

    "Error: XML data was not well-formed"

    Any ideas on what the issue may be?

    Thanks in advance.

    Paul

    I am using:
    TortoiseSVN 1.5.8, Build 15348 - 32 Bit , 2009/02/13 18:06:18
    Subversion 1.5.5,
    apr 1.2.12
    apr-utils 1.2.12
    berkeley db 4.4.20
    neon 0.28.3
    OpenSSL 0.9.8i 15 Sep 2008
    zlib 1.2.3

  • swaiba
    Avatar
    Forum Moderator
    1786 Posts
  • Nicolaas
    Avatar
    Forum Moderator
    213 Posts

    Re: a bunch of new modules Link to this post

    check out this!

    D:\wamp\bin\php\php5.2.6>pear -V

    PEAR Version: 1.7.1
    PHP Version: 5.2.6
    Zend Engine Version: 2.2.0
    Running on: Windows NT ASUS 6.1 build 7600

    D:\wamp\bin\php\php5.2.6>pear install
    Nothing to install

    D:\wamp\bin\php\php5.2.6>pear list
    INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
    =========================================
    PACKAGE VERSION STATE
    Archive_Tar 1.3.7 stable
    Console_Getopt 1.2.3 stable
    PEAR 1.9.1 stable
    PHPUnit 1.3.2 stable
    Structures_Graph 1.0.3 stable
    XML_Util 1.2.1 stable

    D:\wamp\bin\php\php5.2.6>

    So this is why I spent hours and hours pissing around with pear shaped and why I think it would be better to work PHPUnit into the code in some way other than this pear business....

    The PHP files themselves tell me that they are version 1.71.

    Any hints?

  • swaiba
    Avatar
    Forum Moderator
    1786 Posts

    Re: a bunch of new modules Link to this post

    That is strange! Only advice is still only - clean, start again and force version 1.81...

  • Nicolaas
    Avatar
    Forum Moderator
    213 Posts

    Re: a bunch of new modules Link to this post

    yeah - thanks for all your help. I might just have to do this.

    Cheers

    Nicolaas

  • DaveTh
    Avatar
    Community Member
    14 Posts

    Re: a bunch of new modules Link to this post

    Hi Swaiba, thanks for helping me last time on the right IDE, I enjoy very much.

    Recently this is my experience of installing PHPUnit.

    (a) This is the only version of Wamp support PHP5.3, which is required for a more recent version of PHPUnit
    WampServer 2.0i [07/11/09]
    Includes :
    - Apache 2.2.11
    - MySQL 5.1.36
    - PHP 5.3.0

    (b) Install PEAR on WAMP
    http://phphints.wordpress.com/2008/08/26/installing-pear-package-manager-on-wamp/

    (c) pear upgrade
    This upgrade Pear 1.8.2 to Pear 1.9.1 (which is needed for installing PHPUnit).

    (d)Installing PHPUnit http://www.phpunit.de/manual/3.0/en/installation.html

    For PHP5.3, you need to

    (1) pear channel-discover pear.phpunit.de <= Alone is insufficient
    (2) pear channel-discover pear.symfony-project.com
    (3) pear channel-discover components.ez.no
    (4) pear install phpunit/PHPUnit

    (e) Install Simpletest (recommended in http://doc.silverstripe.org/testing-guide)

    I can only managed to find this (the latest version from sourceforge does not work ? no time to find out why simpletest_1.0.1.tgz )
    pear install http://ovh.dl.sourceforge.net/sourceforge/simpletest/simpletest_1.0.0.tgz

    Now I will start the difficult process of learning how to do PHP unit test

  • Pike
    Avatar
    Community Member
    40 Posts

    Re: a bunch of new modules Link to this post

    Hi,

    I cannot write tests too. Why? Look to my troubles. Can somebody help me with PHPUnit and SS 2.4.2?

    My primary OS is windows 7 ultimate 64-bit, my secondary OS is Ubuntu 10.10. On Ubuntu is all OK.
    I’ve troubles only on windows 7: all 32-bit: Apache/2.2.15 (Win32) DAV/2 PHP/5.2.13 mod_ssl/2.2.15 OpenSSL/0.9.8m mod_perl/2.0.4 Perl/v5.10.1, mysql 5.1.51.

    I spent whole weekend to setup php with CLI ( I don’t want see shit error “CLI stopped working”).
    I tested php versions:
    5.3.3    - I cannot connect to mysql
    5.3.2   - I cannot connect to mysql
    5.3.1   - I can connect to mysql, but I cannot resolve error “CLI stopped working“
    5.2.13   - OK. I can connect to mysql , I solved error “CLI stopped working“ (reason: soap.dll).

    I install pear.

    INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
    =========================================
    PACKAGE VERSION STATE
    Archive_Tar 1.3.7 stable
    Console_Color 1.0.2 stable
    Console_Getargs 1.3.5 stable
    Console_Getopt 1.2.3 stable
    Console_Table 1.1.3 stable
    Event_Dispatcher 1.1.0 stable
    File_Find 1.3.1 stable
    HTML_Common 1.2.5 stable
    HTML_Table 1.8.3 stable
    MDB2 2.4.1 stable
    MDB2_Driver_mysql 1.4.1 stable
    MDB2_Driver_mysqli 1.4.1 stable
    PEAR 1.9.1 stable
    PHPUnit 1.3.2 stable
    PHP_CompatInfo 1.9.0 stable
    PhpDocumentor 1.4.3 stable
    Structures_Graph 1.0.3 stable
    Var_Dump 1.0.4 stable
    XML_Beautifier 1.2.0 stable
    XML_Parser 1.3.2 stable
    XML_Util 1.2.1 stable

    As CLI work php phpunit StackTest (.php).

    But when I want try http://www.silverstripedev.sk.loc/dev/tests, I see only error:

    [User Notice] Please no longer include "PHPUnit/Framework.php".
    GET /dev/tests
    Line 50 in E:\php\PEAR\PHPUnit\Framework.php
    Source
    41 * @link http://www.phpunit.de/
    42 * @since File available since Release 3.0.0
    43 */
    44
    45 require_once 'PHP/CodeCoverage/Filter.php';
    46 PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'PHPUNIT');
    47
    48 trigger_error(
    49 'Please no longer include "PHPUnit/Framework.php".', E_USER_NOTICE
    50 );
    Trace
    •   trigger_error(Please no longer include "PHPUnit/Framework.php".,1024)
    Line 50 of Framework.php
    •   require_once(E:\php\PEAR\PHPUnit\Framework.php)
    Line 20 of TestRunner.php
    •   include_once(E:\Www\www.silverstripedev.sk\sapphire\dev\TestRunner.php)
    Line 300 of Core.php
    •   __autoload(TestRunner)
    •   ReflectionClass->__construct(TestRunner)
    Line 89 of Object.php
    •   Object::create(TestRunner)
    Line 108 of DevelopmentAdmin.php
    •   DevelopmentAdmin->tests(SS_HTTPRequest)
    Line 137 of RequestHandler.php
    •   RequestHandler->handleRequest(SS_HTTPRequest)
    Line 147 of Controller.php
    •   Controller->handleRequest(SS_HTTPRequest)
    Line 281 of Director.php
    •   Director::handleRequest(SS_HTTPRequest,Session)
    Line 124 of Director.php
    •   Director::direct(/dev/tests)
    Line 127 of main.php

    Where is problem, what I’m doing wrong?

    2789 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.