コード例 #1
0
 /**
  * @dataProvider getTypes
  *
  * @param string $type
  */
 public function testTypeTitle($type)
 {
     $this->storage->setType($type);
     if ($type) {
         $titles = Storage::getTypeTitles();
         $this->assertEquals($titles[$type], $this->storage->getTypeTitle());
     } else {
         $this->assertEmpty($this->storage->getTypeTitle());
     }
 }