Esempio n. 1
0
 public function testScopeIsSingleton()
 {
     $scope = Scopes::instance();
     $otherScope = Scopes::instance();
     $this->assertSame($scope, $otherScope);
 }
Esempio n. 2
0
 public function __construct($interface)
 {
     $this->interface = $interface;
     $this->scope = Scopes::instance();
 }