public function testClosureBindIf() { $c = new Container(); $c->bind('test', function () { return 'ionut'; }); $c->bindIf('test', function () { return 'alex'; }); $this->assertEquals('ionut', $c->make('test')); }