PHP Classes
elePHPant
Icontem

File: tests/org/majkel/tcpdfwarper/MulticellOpTest.php

Recommend this page to a friend!
  Classes of Michal Kowalik  >  TCPDF Warper  >  tests/org/majkel/tcpdfwarper/MulticellOpTest.php  >  Download  
File: tests/org/majkel/tcpdfwarper/MulticellOpTest.php
Role: Unit test script
Content type: text/plain
Description: tests
Class: TCPDF Warper
Create PDF documents using TCPDF fluent interface
Author: By
Last change: test style compilant
Date: 4 years ago
Size: 1,560 bytes
 

 

Contents

Class file image Download
<?php
/**
 * Created by PhpStorm.
 * Package: org\majkel\tcpdfwarper
 * User: Micha? (majkel) Kowalik <maf.michal@gmail.com>
 * Date: 12/28/2014
 * Time: 20:41
 */

namespace org\majkel\tcpdfwarper;

require_once
'OpTestAbstract.php';

/**
 * Class MultiCellOpTest
 * @package org\majkel\tcpdfwarper
 * @coversDefaultClass \org\majkel\tcpdfwarper\MulticellOp
 */
class MultiCellOpTest extends OpTestAbstract {

   
/**
     * @expectedException \org\majkel\tcpdfwarper\MissingArgException
     * @covers ::put
     */
   
public function testPutMissingW() {
       
$obj = $this->getObject();
       
$obj->put();
    }

   
/**
     * @expectedException \org\majkel\tcpdfwarper\MissingArgException
     * @covers ::put
     */
   
public function testPutMissingH() {
       
$obj = $this->getObject();
       
$obj->w = 0;
       
$obj->put();
    }

   
/**
     * @expectedException \org\majkel\tcpdfwarper\MissingArgException
     * @covers ::put
     */
   
public function testPutMissingTxt() {
       
$obj = $this->getObject();
       
$obj->w = 0;
       
$obj->h = 0;
       
$obj->put();
    }

   
/**
     * @covers ::setWH
     */
   
public function testSetWH() {
       
$this->setWHTest();
    }

   
/**
     * @covers ::setSize
     */
   
public function testSetSize() {
       
$this->setSizeTest();
    }

   
/**
     * @covers ::setXY
     */
   
public function testSetXY() {
       
$this->setXYTest();
    }

   
/**
     * @covers ::setPos
     */
   
public function testSetPos() {
       
$this->setPosTest();
    }

   
/**
     * @return string
     */
   
protected function getClass() {
        return
'\org\majkel\tcpdfwarper\MultiCellOp';
    }

   
/**
     * @return string
     */
   
protected function getMethod() {
        return
'MultiCell';
    }
}