15 protected static $result = array(
"I am",
"a test string",
"for split");
20 $this->split_string = $this->f->splitString(
"#");
26 $this->split_string =
null;
31 $arr = $this->split_string->transform(self::STRING_TO_SPLIT);
40 $next_arr = $this->split_string->transform($arr);
41 }
catch (InvalidArgumentException $e) {
44 $this->assertTrue($raised);
49 $with = $this->split_string->transform($without);
50 }
catch (InvalidArgumentException $e) {
53 $this->assertTrue($raised);
57 $std_class =
new stdClass();
58 $with = $this->split_string->transform($std_class);
59 }
catch (InvalidArgumentException $e) {
62 $this->assertTrue($raised);
67 $split_string = $this->f->splitString(
"#");
68 $arr = $split_string(self::STRING_TO_SPLIT);
74 $split_string = $this->f->splitString(
"#");
79 $next_arr = $split_string($arr);
80 }
catch (InvalidArgumentException $e) {
83 $this->assertTrue($raised);
88 $with = $split_string($number);
89 }
catch (InvalidArgumentException $e) {
92 $this->assertTrue($raised);
96 $std_class =
new stdClass();
97 $with = $split_string($std_class);
98 }
catch (InvalidArgumentException $e) {
101 $this->assertTrue($raised);
An exception for terminatinating execution or to throw for unit testing.
TestCase for SplitString transformations.