Ejemplo n.º 1
0
</td>
					<td><?php 
    echo QuickStatsController::shortenNumberDecorator($row['pageviews']);
    ?>
</td>
					<td><?php 
    echo QuickStatsController::shortenNumberDecorator($row['edits']);
    ?>
</td>
					<td><?php 
    echo QuickStatsController::shortenNumberDecorator($row['photos']);
    ?>
</td>
					<?php 
    if (isset($totals['likes'])) {
        ?>
					<td><?php 
        echo QuickStatsController::shortenNumberDecorator($row['likes']);
        ?>
</td>
					<?php 
    }
    ?>
				</tr>
			<?php 
}
?>
		</tbody>
	</table>
</section>
Ejemplo n.º 2
0
 /**
  * @dataProvider shortenNumberDecoratorDataProvider
  * @group UsingDB
  */
 public function testShortenNumberDecorator($number, $expected)
 {
     $result = QuickStatsController::shortenNumberDecorator($number);
     $this->assertEquals($expected, $result);
 }