Welcome Guest, Not a member yet? Register   Sign In
PHPUnit strangeness
#3

(10-18-2019, 05:17 PM)MGatner Wrote: What happens if you take the namespace off of FileHandlerTest?

Same.

Tried that and other things, but the question was long and confusing enough.

Also tried moving setting up the vfsStream into each test method. Then changed the setUp() to this

PHP Code:
class FileHandlerTest extends \CIUnitTestCase
{
 protected 
$bogus;

 
    protected function setUp(): void
     
{
 
        $this->bogus 'bogus';
 
    

Same fail.

If setUp() is removed then everything works.

I tried upgrading PHPUnit to the latest version. Same fail, plus some deprecation warnings on a few Assertions.

... --- ... We Interrupt this Reply with Breaking NEWS!!!

Got it working!

Compare the above setUp() the this one

PHP Code:
class FileHandlerTest extends \CIUnitTestCase
{
 protected 
$bogus;

 
    protected function setUp(): void
     
{
         parent::setUp();
 
        $this->bogus 'bogus';
 
    
Reply


Messages In This Thread
PHPUnit strangeness - by dave friend - 10-17-2019, 05:05 PM
RE: PHPUnit strangeness - by MGatner - 10-18-2019, 05:17 PM
RE: PHPUnit strangeness - by dave friend - 10-18-2019, 06:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB