File tree Expand file tree Collapse file tree
user_guide_src/source/testing/overview Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
22
3+ use App \Libraries \Foo ;
4+
35// Create an instance of the class to test
4- $ obj = new \ Foo ();
6+ $ obj = new Foo ();
57
68// Get the invoker for the 'privateMethod' method.
79$ method = $ this ->getPrivateMethodInvoker ($ obj , 'privateMethod ' );
Original file line number Diff line number Diff line change 11<?php
22
3+ use App \Libraries \Foo ;
4+
35// Create an instance of the class to test
4- $ obj = new \ Foo ();
6+ $ obj = new Foo ();
57
68// Test the value
79$ this ->assertEquals ('bar ' , $ this ->getPrivateProperty ($ obj , 'baz ' ));
Original file line number Diff line number Diff line change 11<?php
22
3+ use App \Libraries \Foo ;
4+
35// Create an instance of the class to test
4- $ obj = new \ Foo ();
6+ $ obj = new Foo ();
57
68// Set the value
79$ this ->setPrivateProperty ($ obj , 'baz ' , 'oops! ' );
You can’t perform that action at this time.
0 commit comments