Created
June 26, 2014 23:20
-
-
Save mjacobus/da8a101ac1156b396888 to your computer and use it in GitHub Desktop.
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 NurseTests; | |
use PHPUnit_Framework_TestCase; | |
use Nurse\Container; | |
use Nurse\Di; | |
class ContainerTest extends PHPUnit_Framework_TestCase { | |
public function testExisteClasse(){ | |
$this->assertInstanceOf('Nurse\Container', new Container ); | |
} | |
public function testRetornoCorreto() | |
{ | |
$object = new Container; | |
$object->set('nurse_di', function(){ return new Di;}); | |
$this->assertInstanceOf('Nurse\Di', $object->get('nurse_di')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment