Esempio n. 1
0
 /**
  * Create the valid container for tokens.
  *
  * @test
  */
 public function singleContainer()
 {
     $marvel = new Token($this->marvelTok, 'marvel');
     $comicvine = new Token($this->comicVineTok, 'comicvine');
     $container = new TokenContainer();
     $container->store($marvel)->store($comicvine);
     $this->assertObjectHasAttribute('tokens', $container);
     $this->assertTrue($container->isValid());
     $this->assertEquals($marvel, $container->retrieve('marvel'));
     $this->assertEquals($comicvine, $container->retrieve('comicvine'));
 }