better comments and readme
This commit is contained in:
parent
f9cb9aac4c
commit
2746dbdb63
11
README.md
Normal file
11
README.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
The base (abstract) classes for my PHPUnit testing scripts.
|
||||||
|
|
||||||
|
## BrowserTest.php
|
||||||
|
Set up the Selenium test using args from environment
|
||||||
|
Take a screenshot on failed test
|
||||||
|
|
||||||
|
## DomainRedirectTest.php
|
||||||
|
This will test all combinations of http/https/www/trailing slash, checking that they all redirect to the same destination URL.
|
||||||
|
|
||||||
|
## UrlRedirectTest.php
|
||||||
|
This will check (using curl) that the source URL redirects to the destination URL
|
@ -1,6 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace JHodges\PHPUnitBase;
|
namespace JHodges\PHPUnitBase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set up the Selenium test using args from environment
|
||||||
|
* Take a screenshot on failed test
|
||||||
|
**/
|
||||||
|
|
||||||
abstract class BrowserTest extends \PHPUnit_Extensions_Selenium2TestCase{
|
abstract class BrowserTest extends \PHPUnit_Extensions_Selenium2TestCase{
|
||||||
|
|
||||||
public function setUp(){
|
public function setUp(){
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace JHodges\PHPUnitBase;
|
namespace JHodges\PHPUnitBase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This will test all combinations of http/https/www/trailing slash.
|
||||||
|
* Checking that they all redirect to the same destination URL.
|
||||||
|
**/
|
||||||
|
|
||||||
abstract class DomainRedirectTest extends UrlRedirectTest{
|
abstract class DomainRedirectTest extends UrlRedirectTest{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3,6 +3,11 @@ namespace JHodges\PHPUnitBase;
|
|||||||
|
|
||||||
use \PHPUnit\Framework\TestCase;
|
use \PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This will check (using curl) that the source
|
||||||
|
* URL redirects to the destination URL
|
||||||
|
**/
|
||||||
|
|
||||||
abstract class UrlRedirectTest extends TestCase{
|
abstract class UrlRedirectTest extends TestCase{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user