cvs: smarty /unit_test test_cases.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1080038826@cvsserver>
messju		Tue Mar 23 05:47:06 2004 EDT

  Modified files:              
    /smarty/unit_test	test_cases.php 
  Log:
  some simplifications of the latest assertions
  
  
http://cvs.php.net/diff.php/smarty/unit_test/test_cases.php?r1=1.5&r2=1.6&ty=u
Index: smarty/unit_test/test_cases.php
diff -u smarty/unit_test/test_cases.php:1.5 smarty/unit_test/test_cases.php:1.6
--- smarty/unit_test/test_cases.php:1.5	Tue Mar 23 05:23:39 2004
+++ smarty/unit_test/test_cases.php	Tue Mar 23 05:47:06 2004
@@ -252,17 +252,16 @@
     // test loading and running modifier.escape.php
     function test_escape_modifier_get_plugins_filepath() {
         $filepath = $this->smarty->_get_plugin_filepath('modifier', 'escape');
-        $this->assertEquals((bool)$filepath, true);
+        $this->assertTrue($filepath);
     }
 
     function test_escape_modifier_include_file() {
         $filepath = $this->smarty->_get_plugin_filepath('modifier', 'escape');
-        $success = include $filepath;
-        $this->assertEquals((bool)$success, true);
+        $this->assertTrue(include($filepath));
     }
 
     function test_escape_modifier_function_exists() {
-        $this->assertEquals(function_exists('smarty_modifier_escape'), true);
+        $this->assertTrue(function_exists('smarty_modifier_escape'));
     }
 
     function test_escape_modifier_escape_default() {

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.