Development

Changeset 23681 for tools/lime

You must first sign up to be able to contribute.

Changeset 23681 for tools/lime

Show
Ignore:
Timestamp:
11/07/09 21:30:24 (4 years ago)
Author:
bschussek
Message:

[lime] File extensions are now hidden in the summary output (as in lime 1)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/lime/branches/2.0/lib/output/LimeOutputConsoleSummary.php

    r21524 r23681  
    311311  protected function truncate($file) 
    312312  { 
     313    $extension = pathinfo($file, PATHINFO_EXTENSION); 
     314    $file = substr($file, 0, strlen($file)-strlen($extension)); 
     315 
    313316    if (!is_null($this->options['base_dir'])) 
    314317    { 
  • tools/lime/branches/2.0/test/unit/output/LimeOutputConsoleSummaryTest.php

    r21370 r23681  
    1414LimeAnnotationSupport::enable(); 
    1515 
    16 $t = new LimeTest(37); 
     16$t = new LimeTest(39); 
    1717 
    1818 
     
    228228 
    229229 
     230// @Test: File extensions are omitted in the output 
     231 
     232  // fixtures 
     233  $printer->printText(str_pad('/test/script', 73, '.')); 
     234  $printer->printLine("ok", LimePrinter::OK); 
     235  $printer->replay(); 
     236  // test 
     237  $output->focus('/test/script.php'); 
     238  $output->pass('A passed test', '/test/script.php', 11); 
     239  $output->close(); 
     240  // assertions 
     241  $printer->verify(); 
     242 
     243 
    230244// @Test: Too long file names are truncated 
    231245