testphase
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • Phramework
    • Exceptions
    • Testphase
      • Exceptions
    • Validate

Classes

  • Binary
  • Expression
  • Globals
  • Server
  • TestParser
  • Testphase
  • Util

Class TestParser

Parse tests from file. Α TestParser instance may contain one or more Testphase instances.

Namespace: Phramework\Testphase
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Version: 1.0.0
Since: 0.0.0
Located at TestParser.php

Methods summary

public
# getExport( )
public Phramework\Testphase\Testphase[]
# getTest( )

Get parsed test

Get parsed test

Returns

Phramework\Testphase\Testphase[]

Throws

Exception
When test is not created
public object
# getMeta( )

Get parsed test's meta object

Get parsed test's meta object

Returns

object
public string
# getFilename( )

Returns

string
public
# __construct( String $filename )

Parse test information from a json file this method will parse the file and prepare the object use createTest to complete creation of test

Parse test information from a json file this method will parse the file and prepare the object use createTest to complete creation of test

Parameters

$filename
JSON file containing the test

Throws

Phramework\Exceptions\NotFoundException
When file is not found.
Exception
When file contains not valid JSON.
Phramework\Exceptions\MissingParametersException
When required test properties are not set.
Phramework\Exceptions\IncorrectParametersException
When test properties are not correct.

Todo

Set $validatorRequest header's subtype
public
# createTest( )

Todo

clean up

Properties summary

protected object $export
#
protected Phramework\Testphase\Testphase[] $testphaseCollection

Parsed test

Parsed test

# null
protected $contentsParsed
#
protected object $meta

Parsed test's meta object

Parsed test's meta object

#
protected $filename
#
testphase API documentation generated by ApiGen