phpcheck.select.class.html.php Total: 11 Tests, 0 Errors, ↻all
PHPCheck V1.66, OS: Linux, Machine: el8_9.x86_64, PHP-Version: 8.2.18 (64 Bit), Time: 0.391 ms (AVG: 0.036 ms), Memory: 2.0M (512M)

Cycle:1

CommentLineCodeResultTest
show POST 20 $result $_POST;
$t->check($resulttrue); 
[0.005 ms]
array (
)
Ok
create html select with id as value 24 $selectConfig = array(
  
'1' =>'Bus',
  
'2' => 'Bahn',
  
'{"typ":"VW","Preis":"75680€"}' => 'Auto'
  
);
$html html::select('Fahrzeug',$selectConfig);
$mustContain 'select,name,Fahrzeug,1,Bus,2,Bahn,typ,Auto';
$t->checkHTML($html,$mustContain); 
[0.269 ms]
Ok
create html select 34 $selectConfig = array(
  
'k1'=>'p1',
  
'k2'=>'p2',
  );
$html html::select('test1',$selectConfig);
$mustContain 'select,name,test1,class,k1,p1,k2,p2';
$t->checkHTML($html,$mustContain); 
[0.017 ms]
Ok
create html select size 3 43 $selectConfig = array(
  
'k1'=>'p1',  'k2'=>'p2',
  
'k3'=>'p3',  'k4'=>'a4',
  );
$html html::select('name="test_s" size=3',$selectConfig);
$mustContain 'select,name,test_s,size,3,k1,p1,k4,a4';
$t->checkHTML($html,$mustContain); 
[0.011 ms]
Ok
create html select 52 $selectConfig = array(
  
'Bus',
  
'Bahn',
  
'Auto'
  
);
$html html::select('Fahrzeug2',$selectConfig);
$mustContain 'select,name,Fahrzeug2,0,Bus,1,Bahn,2,Auto';
$t->checkHTML($html,$mustContain); 
[0.011 ms]
Ok
create html select p2 at first 62 $selectConfig = array(
  
'k1'=>'p1',
  
'k2'=>'p2',
  );
$html html::select('test2',$selectConfig,'k2');
$mustContain 'select,name,test2,class,k1,p1,k2,p2';
$t->checkHTML($html,$mustContain); 
[0.009 ms]
Ok
create html select p2 always at first 71 $selectConfig = array(
  
'k1'=>'p1',
  
'k2'=>'p2',
  );
$html html::select('test2',$selectConfig,'k2',array());
$mustContain 'select,name,test2,class,k1,p1,k2,p2';
$t->checkHTML($html,$mustContain); 
[0.007 ms]
Ok
create html select multiple 80 $selectConfig = array(
  
'k1'=>'Auswahl->k1',
  
'k2'=>'Auswahl->k2',
  );
$html html::select('name="multip[]" size="2" multiple',$selectConfig);
$mustContain 'select,name,multip,k1,Auswahl,k1,k2';
$t->checkHTML($html,$mustContain); 
[0.009 ms]
Ok
create html select with groups 89 $selectConfig = array(
  array(
'id'=>'Swedish_Volvo''group' => 'Swedish','car' => 'Volvo'), 
  array(
'id'=>'German_Audi''group' => 'German','car' => 'Audi'),
  array(
'id'=>'German_VW''group' => 'German','car' => 'VW'),
  );
$html html::SelectWithGroup('name="car" size="5" ',$selectConfig,'id','car','group');
$mustContain 'select,name,car,Volvo,Audi,VW';
$t->checkHTML($html,$mustContain); 
[0.026 ms]
Ok
create html select multip with groups 99 $selectConfig = array(
  array(
'id'=>'Swedish_Volvo''group' => 'Swedish','car' => 'Volvo'), 
  array(
'id'=>'German_Audi''group' => 'German','car' => 'Audi'),
  array(
'id'=>'German_VW''group' => 'German','car' => 'VW'),
  );
$html html::SelectWithGroup('multiple name="cars[]" size="5" ',$selectConfig,'id','car','group');
$mustContain 'select,name,cars,Volvo,Audi,VW';
$t->checkHTML($html,$mustContain); 
[0.012 ms]
Ok
create html select with css-class 109 //add new style
$t->addCss('.selCar{background-color:yellow;}'); 
 
$selectConfig = array(
  
'1' =>'Bus',
  
'2' => 'Bahn',
  
'3' => 'Auto'
  
);
$html html::select('name="Fahrzeug3" class="selCar"',$selectConfig);
$mustContain 'select,name,Fahrzeug3,1,Bus,2,Bahn,3,Auto';
$t->checkHTML($html,$mustContain); 
[0.014 ms]
Ok