Jump to content

User:JasonEvansBaldwin/sandbox

From Wikipedia, the free encyclopedia

Jason Baldwin Website from 1995-1997

Link to 20 year old website made by me and unchanged since Apr 1997.


JasonEvansBaldwin (talk) 15:58, 29 September 2016 (UTC)JasonJasonEvansBaldwin (talk) 15:58, 29 September 2016 (UTC)


Xxxxxxxxxxxxx

include(dirname(__FILE__) . '/bootstrap/unit.php'); // Include lime. // Create the lime_test object for 10 number of assertions and color output. $t = new lime_test(10, new lime_output_color()); // The test array. $arr = array('Hello', 'World', 123,); // Output a comment. $t->diag('in_array()'); // Test to make sure in_array returns a boolean value for both values

// that are in the array and not in the array. $t->isa_ok(in_array('hey', $arr), 'bool', '\'in_array\' did not return a boolean value.'); $t->isa_ok(in_array('Hello', $arr), 'bool', '\'in_array\' did not return a boolean value.'); $t->isa_ok(in_array(5, $arr), 'bool', '\'in_array\' did not return a boolean value.'); $t->isa_ok(in_array(FALSE, $arr), 'bool', '\'in_array\' did not return a boolean value.'); // Test to make sure in_array can find values that are in the array // and doesn't find values that are not in the array. $t->ok(!in_array('hey', $arr), '\'in_array\' found a value not in the array.'); $t->ok(!in_array(5, $arr), '\'in_array\' found a value not in the array.'); $t->ok(!in_array(FALSE, $arr), '\'in_array\' found a value not in the array.'); $t->ok(in_array('Hello', $arr), '\'in_array\' failed to find a value that was in the array.'); $t->ok(in_array('World', $arr), '\'in_array\' failed to find a value that was in the array.'); $t->ok(in_array(123, $arr), '\'in_array\' failed to find a value that was in the array.'); Version 2.0[edit] The alpha version of lime 2.0 was announced on the Symfony blog on November 10, 2009. The second version of lime was built to be as backward compatible with the first version as was possible - the two parts of lime 2.0 that are not compatible with lime 1.0 are the configuration of the test harness and the LimeCoverage class.[3] lime 2.0 includes support for xUnit output, source code annotations, parallel execution of tests, automatic generation of mock and stub objects, and operator overloading for data within tests.[3] Unlike the first version of lime, lime 2.0 does have some dependencies on Symfony.[5]


Xxxxxxxxxxxxx

JasonEvansBaldwin (talk) 19:21, 29 September 2016 (UTC)JasonJasonEvansBaldwin (talk) 19:21, 29 September 2016 (UTC)