assert_true(false, "Shouldn't create a movie with / in the name"); } public function create_movie_shouldnt_allow_names_with_trailing_periods_test() { $rand = rand(); $root = ORM::factory("item", 1); try { $movie = movie::create($root, MODPATH . "gallery/tests/test.jpg", "$rand.jpg.", $rand, $rand); } catch (Exception $e) { $this->assert_equal("@todo NAME_CANNOT_END_IN_PERIOD", $e->getMessage()); return; } $this->assert_true(false, "Shouldn't create a movie with trailing . in the name"); } }