Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
<?php defined('SYSPATH') or die('No direct script access.'); // your_test_path/Example_Test.php class Example_Test extends Unit_Test_Case { public function example_passed_test() { $this->assert_true(TRUE); } public function example_failed_test() { $this->assert_true(FALSE); } public function not_match_test() { $this->assert_not_pattern("Geert\n", '/^Geert$/D'); } public function match_test() { $this->assert_pattern("Geert\n", '/^Geert$/'); } }
From the Design Piracy series on my blog: