Skip to content

Instantly share code, notes, and snippets.

@mjacobus
Created June 26, 2014 23:20
Show Gist options
  • Save mjacobus/da8a101ac1156b396888 to your computer and use it in GitHub Desktop.
Save mjacobus/da8a101ac1156b396888 to your computer and use it in GitHub Desktop.
<?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