PHP Classes

File: tests/AbstractReportTest.php

Recommend this page to a friend!
  Classes of Johnny Mast   Redbox PHP Scandir Filter   tests/AbstractReportTest.php   Download  
File: tests/AbstractReportTest.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: Redbox PHP Scandir Filter
Scan files for new or modified files
Author: By
Last change:
Date: 8 years ago
Size: 1,290 bytes
 

Contents

Class file image Download
<?php
namespace Redbox\Scan\Tests;
use
Redbox\Scan\Report;
use
Redbox\Scan;

/**
 * This class will run tests against the AbstractReport class.
 *
 * @coversDefaultClass Scan\Report\AbstractReport
 * @package Redbox\Scan\Tests
 */
class AbstractReportTest extends \PHPUnit_Framework_TestCase
{

   
/**
     * Tests that set and get Items files return the same.
     */
   
public function test_set_and_get_items_return_the_same()
    {
       
$report = new Report\Report();
       
$items = array('a' => 'b');
       
$report->setItems($items);
       
$this->assertEquals($items, $report->getItems());
    }

   
/**
     * Tests that set and get NewFiles files return the same.
     */
   
public function test_set_and_get_newfiles_return_the_same()
    {
       
$report = new Report\Report();
       
$items = array('a' => 'b');
       
$report->setNewfiles($items);
       
$this->assertEquals($items, $report->getNewfiles());
    }

   
/**
     * Tests that set and get Modified files return the same.
     */
   
public function test_set_and_get_modified_files_return_the_same()
    {
       
$report = new Report\Report();
       
$items = array('a' => 'b');
       
$report->setModifiedFiles($items);
       
$this->assertEquals($items, $report->getModifiedFiles());
    }
}