Created
July 1, 2014 13:25
-
-
Save harikt/49a05c2e9b6334dd4d7e to your computer and use it in GitHub Desktop.
Testing and further discussions https://twitter.com/michaelmoussa/status/483937808122273792
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
<?php | |
namespace Hello; | |
class World | |
{ | |
public function display() | |
{ | |
return imap_connect('imap.example.com'); | |
} | |
} |
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
<?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