PHP Classes

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

Recommend this page to a friend!
  Classes of Michal Kowalik   TCPDF Warper   tests/org/majkel/tcpdfwarper/TextOpTest.php   Download  
File: tests/org/majkel/tcpdfwarper/TextOpTest.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: Update of tests/org/majkel/tcpdfwarper/TextOpTest.php
Date: 11 months ago
Size: 1,355 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 TextOpTest
 * @package org\majkel\tcpdfwarper
 * @coversDefaultClass \org\majkel\tcpdfwarper\TextOp
 */
class TextOpTest extends OpTestAbstract {

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

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

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

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

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

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

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