/** * @covers ::from * @covers ::splitPathInTwo * @dataProvider provideContainersToTest */ public function testCanCallStatically($container, $propertyName, $expectedResult) { // ---------------------------------------------------------------- // setup your test // ---------------------------------------------------------------- // perform the change RemoveUsingDotNotationPath::from($container, $propertyName); // ---------------------------------------------------------------- // test the results $this->assertEquals($expectedResult, $container); }
/** * magic method, called when we want to delete a fake property * * @param string $propertyName * the property to remove */ public function __unset($propertyName) { RemoveUsingDotNotationPath::from($this, $propertyName); }