Skip to content

Commit 3d78f16

Browse files
committed
docs: add namespace App\Libraries to sample code
1 parent 3a06211 commit 3d78f16

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

user_guide_src/source/testing/overview/013.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
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');
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
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'));

user_guide_src/source/testing/overview/015.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
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!');

0 commit comments

Comments
 (0)