Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
#51 - Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefersson Nathan committed Nov 27, 2015
1 parent c84f128 commit 742838f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/StrictPhpTestAsset/ClassWithMethodOutput.php
@@ -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';
}
}
13 changes: 13 additions & 0 deletions tests/functional/call-method-only-one-time.phpt
@@ -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

0 comments on commit 742838f

Please sign in to comment.