Skip to content

Commit

Permalink
20210714 Build Fix 3
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanGibbs3 committed Jul 14, 2021
1 parent 114f586 commit 4b4b1d6
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 52 deletions.
25 changes: 20 additions & 5 deletions tests/php/langcommonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,12 @@ public function testBlankPropsValueNULLThrowsError() {
}elseif (version_compare($PHPUV, '6.0', '<')) { // PHPUnit 5x
$this->expectException("PHPUnit_Framework_Error_Notice");
$this->expectExceptionMessage($EEM);
}else{ // PHPUnit 6+
}elseif (version_compare($PHPUV, '9.0', '<')) { // PHPUnit 6x - 8x
$this->expectException("PHPUnit\Framework\Error\Notice");
$this->expectExceptionMessage($EEM);
}else{ // PHPUnit 9+
$this->expectNotice();
$this->expectNoticeMessage($EEM);
}
$$tmp->BlankProps('NULL',NULL);
}
Expand Down Expand Up @@ -224,9 +227,12 @@ public function testADASetItemInvalidThrowsError() {
}elseif (version_compare($PHPUV, '6.0', '<')) { // PHPUnit 5x
$this->expectException("PHPUnit_Framework_Error_Notice");
$this->expectExceptionMessage($EEM);
}else{ // PHPUnit 6+
}elseif (version_compare($PHPUV, '9.0', '<')) { // PHPUnit 6x - 8x
$this->expectException("PHPUnit\Framework\Error\Notice");
$this->expectExceptionMessage($EEM);
}else{ // PHPUnit 9+
$this->expectNotice();
$this->expectNoticeMessage($EEM);
}
$$tmp->SetUIADItem($key,$kD);
}else{
Expand Down Expand Up @@ -256,9 +262,12 @@ public function testCWASetItemInvalidThrowsError() {
}elseif (version_compare($PHPUV, '6.0', '<')) { // PHPUnit 5x
$this->expectException("PHPUnit_Framework_Error_Notice");
$this->expectExceptionMessage($EEM);
}else{ // PHPUnit 6+
}elseif (version_compare($PHPUV, '9.0', '<')) { // PHPUnit 6x - 8x
$this->expectException("PHPUnit\Framework\Error\Notice");
$this->expectExceptionMessage($EEM);
}else{ // PHPUnit 9+
$this->expectNotice();
$this->expectNoticeMessage($EEM);
}
$$tmp->SetUICWItem($key,$kD);
}
Expand All @@ -283,9 +292,12 @@ public function testCPASetItemInvalidThrowsError() {
}elseif (version_compare($PHPUV, '6.0', '<')) { // PHPUnit 5x
$this->expectException("PHPUnit_Framework_Error_Notice");
$this->expectExceptionMessage($EEM);
}else{ // PHPUnit 6+
}elseif (version_compare($PHPUV, '9.0', '<')) { // PHPUnit 6x - 8x
$this->expectException("PHPUnit\Framework\Error\Notice");
$this->expectExceptionMessage($EEM);
}else{ // PHPUnit 9+
$this->expectNotice();
$this->expectNoticeMessage($EEM);
}
$$tmp->SetUICPItem($key,$kD);
}
Expand All @@ -310,9 +322,12 @@ public function testUAASetItemInvalidThrowsError() {
}elseif (version_compare($PHPUV, '6.0', '<')) { // PHPUnit 5x
$this->expectException("PHPUnit_Framework_Error_Notice");
$this->expectExceptionMessage($EEM);
}else{ // PHPUnit 6+
}elseif (version_compare($PHPUV, '9.0', '<')) { // PHPUnit 6x - 8x
$this->expectException("PHPUnit\Framework\Error\Notice");
$this->expectExceptionMessage($EEM);
}else{ // PHPUnit 9+
$this->expectNotice();
$this->expectNoticeMessage($EEM);
}
$$tmp->SetUIUAItem($key,$kD);
}
Expand Down
5 changes: 4 additions & 1 deletion tests/php/langcommonspTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,12 @@ public function testTDFNotExistThrowsError() {
}elseif (version_compare($PHPUV, '6.0', '<')) { // PHPUnit 5x
$this->expectException("PHPUnit_Framework_Error_Notice");
$this->expectExceptionMessage($EEM);
}else{ // PHPUnit 6+
}elseif (version_compare($PHPUV, '9.0', '<')) { // PHPUnit 6x - 8x
$this->expectException("PHPUnit\Framework\Error\Notice");
$this->expectExceptionMessage($EEM);
}else{ // PHPUnit 9+
$this->expectNotice();
$this->expectNoticeMessage($EEM);
}
$this->assertInstanceOf('UILang',self::$UIL = new UILang($lang),
"Class for $lang not created."
Expand Down

0 comments on commit 4b4b1d6

Please sign in to comment.