Skip to content

kohanaworld/testing-component

This branch is 2 commits ahead of InterNations/TestingComponent:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cc150fb · Jun 26, 2024

History

84 Commits
Jun 26, 2024
Apr 1, 2013
Mar 1, 2022
Mar 1, 2022
Feb 7, 2015
Jun 16, 2020
Jun 26, 2024
Mar 1, 2022
Mar 1, 2022

Repository files navigation

Test helpers for Kohana/Symfony projects

Test

A collection of test helpers to ease testing of Symfony3 projects.

The base test class

<?php
use InterNations\Component\Testing\AbstractTestCase;

class MyTest extends AbstractTestCase
{
}

Accessing restricted members

<?php
use InterNations\Component\Testing\AccessTrait;


class MyTest ...
{
    use AccessTrait;

    public function testSomething()
    {
        $this->setNonPublicProperty($this->sut, 'privateProperty', 'value');
        $this->callNonPublicMethod($this->sut, 'protectedMethod', ['arg1', 'arg2']);
    }
}

About

A collection of test helpers for Kohana/Symfony projects

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.6%
  • HTML 0.4%