Пример #1
0
 public function test_print_array()
 {
     $my_string = "Hello";
     $second_string = " World";
     $third_string = " Goodbye World";
     $string = new williamknauss\String($my_string);
     $this->expectOutputString($my_string . $second_string . $third_string);
     $string->print($second_string, $third_string);
 }
Пример #2
0
 /**
  * @expectedException        Exception
  * @expectedExceptionMessage The last evolution resulted in a array but you expected a: string.
  */
 public function test__call_last_evolution_datatype_exception()
 {
     $my_string = array();
     $string = new williamknauss\String($my_string);
     $string->_call_last_evolution("string", true);
 }