|
From: Ibbar <ib...@ep...> - 2011-01-02 21:21:24
|
On 1/2/11 12:40 PM, Ibbar wrote:
> Hello,
>
> Sorry if this has been addressed before, but I couldn't find the answer
> any where.
>
>
> When running my test with version 1.0.1 using php 5.2.14 on OSX (10.5.8)
> I get the following error
>
>
> Fatal error: Call to a member function getDumper() on a non-object in
> /Users/ibbar/project/test/simpletest/test_case.php on line 312
>
>
> == TEST ==
> <?php
> require_once 'simpletest/autorun.php';
> require_once '../lib/BitwiseStatus.php';
>
> class BitwiseStatusTest extends UnitTestCase {
> private $bitwiseStatusObj;
>
> public function __construct() {
> parent::__construct();
> $this->bitwiseStatusObj = new BitwiseStatus();
> }
>
> public function testSetStatus() {
> $this->bitwiseStatusObj->setStatus(4);
> $this->assertEqual($this->bitwiseStatusObj->getStatus(), 4);
> }
> }
>
> $test =&new BitwiseStatusTest();
> $test->testSetStatus();
> == TEST ==
>
>
> Any help will be appreciated.
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Simpletest-support mailing list
> Sim...@li...
> https://lists.sourceforge.net/lists/listinfo/simpletest-support
Hello,
I finally figured out what the issue was. I shouldn't have included a
constructor. Instead I should have used the setUp() method.
Best Regards,
William
|