NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
PhpED PHPUnit integration and 5.3 namespaces?


Joined: 28 Nov 2011
Posts: 13
Reply with quote
So, it would seem PhpED loses my class the moment I put it into a namespace.

This file, PhpED locates it within the Test Suite:
Code:
<?php

/**
 * User test case.
 */

require_once 'ControllerTestCase.php';

class UserTest extends \ControllerTestCase
{

    public function testAssertDoTest()
    {
        $this->assertTrue(true);
    }

}


But the moment I add "namespace Models;" to the top, Test Suite fails to locate the class:

Code:
<?php

/**
 * User test case.
 */

namespace Models;

require_once 'ControllerTestCase.php';

class UserTest extends \ControllerTestCase
{

    public function testAssertDoTest()
    {
        $this->assertTrue(true);
    }

}

View user's profileFind all posts by guiceSend private message


Joined: 27 Apr 2007
Posts: 72
Reply with quote
the same
View user's profileFind all posts by sirjardaSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8351
Reply with quote
unfortunately there are problems with namespaced tests in v6 and they are "by design".
v7 does not have such problems. See your example in v7:


_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
PhpED PHPUnit integration and 5.3 namespaces?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic