This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jefersson Nathan
committed
Nov 27, 2015
1 parent
c84f128
commit 742838f
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: malukenho | ||
* Date: 11/27/15 | ||
* Time: 7:32 PM | ||
*/ | ||
|
||
namespace StrictPhpTestAsset; | ||
|
||
/** | ||
* @uthor Jefersson Nathan <malukenho@phpse.net> | ||
*/ | ||
class ClassWithMethodOutput | ||
{ | ||
public function hello() | ||
{ | ||
echo 'Hello'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--TEST-- | ||
Verifies that method is called only ont time | ||
--FILE-- | ||
<?php | ||
|
||
require_once __DIR__ . '/init.php'; | ||
|
||
$object = new \StrictPhpTestAsset\ClassWithMethodOutput(); | ||
|
||
$object->hello(); | ||
?> | ||
--EXPECTF-- | ||
Hello |