Ejemplo n.º 1
0
 public function testInstantiation()
 {
     $lrs = new RemoteLRS();
     $this->assertInstanceOf('TinCan\\RemoteLRS', $lrs);
     $this->assertAttributeEmpty('endpoint', $lrs, 'endpoint empty');
     $this->assertAttributeEmpty('auth', $lrs, 'auth empty');
     $this->assertAttributeEmpty('extended', $lrs, 'extended empty');
     $this->assertSame(TinCan\Version::latest(), $lrs->getVersion(), 'version set to latest');
 }
Ejemplo n.º 2
0
 public function testLatest()
 {
     $result = TinCan\Version::latest();
     $this->assertSame("1.0.1", $result, "match latest");
 }