TestCase for SplitString transformations.
More...
◆ setUp()
SplitStringTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 17 of file SplitStringTest.php.
19 $this->f =
new Transformation\Factory();
20 $this->split_string = $this->f->splitString(
"#");
◆ tearDown()
SplitStringTest::tearDown |
( |
| ) |
|
|
protected |
◆ testInvoke()
SplitStringTest::testInvoke |
( |
| ) |
|
Definition at line 65 of file SplitStringTest.php.
References $result.
67 $split_string = $this->f->splitString(
"#");
68 $arr = $split_string(self::STRING_TO_SPLIT);
◆ testInvokeFails()
SplitStringTest::testInvokeFails |
( |
| ) |
|
Definition at line 72 of file SplitStringTest.php.
74 $split_string = $this->f->splitString(
"#");
79 $next_arr = $split_string($arr);
83 $this->assertTrue($raised);
88 $with = $split_string($number);
92 $this->assertTrue($raised);
96 $std_class =
new stdClass();
97 $with = $split_string($std_class);
101 $this->assertTrue($raised);
◆ testTransform()
SplitStringTest::testTransform |
( |
| ) |
|
◆ testTransformFails()
SplitStringTest::testTransformFails |
( |
| ) |
|
Definition at line 35 of file SplitStringTest.php.
40 $next_arr = $this->split_string->transform($arr);
44 $this->assertTrue($raised);
49 $with = $this->split_string->transform($without);
53 $this->assertTrue($raised);
57 $std_class =
new stdClass();
58 $with = $this->split_string->transform($std_class);
62 $this->assertTrue($raised);
◆ $result
SplitStringTest::$result = array("I am", "a test string", "for split") |
|
staticprotected |
◆ STRING_TO_SPLIT
const SplitStringTest::STRING_TO_SPLIT = "I am#a test string#for split" |
The documentation for this class was generated from the following file: