public function testItShouldWrapEachInterfaceIntoANewProxy() { $repository = $this->mock('\\PHPCRAPI\\PHPCR\\Repository')->login($this->sessionInterface)->getParameters()->new(); $session = new Session($repository, 'default'); $this->assertTrue($session->getNode('/') instanceof Node); $this->assertTrue($session->getRootNode() instanceof Node); $this->assertTrue($session->getNodes()[0] instanceof Node); $this->assertTrue($session->getNodeByIdentifier('/') instanceof Node); $this->assertTrue($session->getWorkspace() instanceof Workspace); }