Skip to content

Instantly share code, notes, and snippets.

@harikt
Created July 1, 2014 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harikt/49a05c2e9b6334dd4d7e to your computer and use it in GitHub Desktop.
Save harikt/49a05c2e9b6334dd4d7e to your computer and use it in GitHub Desktop.
<?php
namespace Hello;
class World
{
public function display()
{
return imap_connect('imap.example.com');
}
}
<?php
namespace Hello;
require __DIR__ . '/World.php';
class WorldTest extends \PHPUnit_Framework_Testcase
{
public function testDisplay()
{
$world = new World();
var_dump($world->display());
}
}
function imap_connect($url) {
return "Hello World";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment