2017 © Pedro Peláez
 

library test-case

Access private properties in unit tests

image

jstewmc/test-case

Access private properties in unit tests

  • Tuesday, July 4, 2017
  • by Jstewmc
  • Repository
  • 1 Watchers
  • 0 Stars
  • 100 Installations
  • PHP
  • 24 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

test-case

Access private properties in unit tests., (*1)

use Jstewmc\TestCase\TestCase;

class Test extends TestCase
{
    public function testFoo()
    {
        $class = new class { private $foo = 'bar'; };

        $this->assertEquals('bar', $this->getProperty('foo', $class));

        return;
    }    
}

License

MIT, (*2)

Author

Jack Clayton, (*3)

Version

2.0.0, July 4, 2017

  • Update PHPUnit's major version from ^5.4 to ^6.2.

1.0.0, August 13, 2016

  • Stable release

0.1.0, July 28, 2016

  • Initial release

The Versions

04/07 2017

dev-master

9999999-dev

Access private properties in unit tests

  Sources   Download

MIT

The Requires

 

by Jack Clayton

php properties private jstewmc test-case

04/07 2017

v2.0.0

2.0.0.0

Access private properties in unit tests

  Sources   Download

MIT

The Requires

 

by Jack Clayton

php properties private jstewmc test-case

29/07 2016

v1.0.0

1.0.0.0

Access private properties in unit tests

  Sources   Download

MIT

The Requires

 

by Jack Clayton

php properties private jstewmc test-case

29/07 2016

v0.1.0

0.1.0.0

Access private properties in unit tests

  Sources   Download

MIT

The Requires

 

by Jack Clayton

php properties private jstewmc test-case