Changeset 678

Show
Ignore:
Timestamp:
03/12/08 06:50:49 (10 months ago)
Author:
tswicegood
Message:

move expected test case into its own file

Location:
DocTest/trunk/tests
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • DocTest/trunk/tests/basic-function-use-case.phpt

    r646 r678  
    1818ensure(file_exists(dirname(__FILE__) . '/support/tests/phpt_add-1.phpt'))->equals(true); 
    1919 
    20 $expected = "--TEST--\n" . 
    21             "This function performs basic mathmatics\n" . 
    22             "--FILE--\n" . 
    23             "<?php\n" . 
    24             '$sum = phpt_add(2, 2);' . "\n" . 
    25             'echo $sum, "\n";' . "\n" . 
    26             "?>\n" . 
    27             "===DONE===\n" . 
    28             "--EXPECT--\n" . 
    29             "4\n" . 
    30             "===DONE==="; 
     20$expected = file_get_contents(dirname(__FILE__) . '/expected_test'); 
    3121 
    3222$actual = trim(file_get_contents(dirname(__FILE__) . '/support/tests/phpt_add-1.phpt'));