Пример #1
0
 /**
  * Test for getTypeDescription
  *
  * @param string $type   The data type to get a description.
  * @param string $output Expected output
  *
  * @return void
  *
  * @dataProvider providerForTestGetTypeDescription
  */
 public function testGetTypeDescription($type, $output)
 {
     $this->assertEquals(
         $output,
         $this->object->getTypeDescription($type)
     );
 }
Пример #2
0
 /**
  * Test for getTypeDescription
  *
  * @return void
  */
 public function testGetTypeDescription()
 {
     $this->assertEquals(
         '',
         $this->object->getTypeDescription('enum')
     );
 }
 /**
  * Test for getTypeDescription with uknown value
  *
  * @return void
  */
 public function testGetUnknownTypeDescription()
 {
     $this->assertEquals('', $this->object->getTypeDescription('UNKNOWN'));
 }