Skip to content

Commit d76ef2c

Browse files
committed
Update tests/ZendTest/Cache/Storage/Adapter/CommonAdapterTest.php
Removed strict check to just make it PRS-2 compliant
1 parent 1f1fea2 commit d76ef2c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/ZendTest/Cache/Storage/Adapter/CommonAdapterTest.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ public function testTouchItemsReturnsGivenKeysIfNonWritable()
856856

857857
public function testOptimize()
858858
{
859-
if (($this->_storage instanceof OptimizableInterface) !== true) {
859+
if (!($this->_storage instanceof OptimizableInterface)) {
860860
$this->markTestSkipped("Storage doesn't implement OptimizableInterface");
861861
}
862862

@@ -897,7 +897,7 @@ public function testIterator()
897897

898898
public function testFlush()
899899
{
900-
if (($this->_storage instanceof FlushableInterface) !== true) {
900+
if (!($this->_storage instanceof FlushableInterface)) {
901901
$this->markTestSkipped("Storage doesn't implement OptimizableInterface");
902902
}
903903

@@ -913,7 +913,7 @@ public function testFlush()
913913

914914
public function testClearByPrefix()
915915
{
916-
if (($this->_storage instanceof ClearByPrefixInterface) !== true) {
916+
if (!($this->_storage instanceof ClearByPrefixInterface)) {
917917
$this->markTestSkipped("Storage doesn't implement ClearByPrefixInterface");
918918
}
919919

@@ -931,7 +931,7 @@ public function testClearByPrefix()
931931

932932
public function testClearByNamespace()
933933
{
934-
if (($this->_storage instanceof ClearByNamespaceInterface) !== true) {
934+
if (!($this->_storage instanceof ClearByNamespaceInterface)) {
935935
$this->markTestSkipped("Storage doesn't implement ClearByNamespaceInterface");
936936
}
937937

@@ -965,7 +965,7 @@ public function testClearByNamespace()
965965

966966
public function testClearExpired()
967967
{
968-
if (($this->_storage instanceof ClearExpiredInterface) !== true) {
968+
if (!($this->_storage instanceof ClearExpiredInterface)) {
969969
$this->markTestSkipped("Storage doesn't implement ClearExpiredInterface");
970970
}
971971

@@ -994,7 +994,7 @@ public function testClearExpired()
994994

995995
public function testTagable()
996996
{
997-
if (($this->_storage instanceof TaggableInterface) !== true) {
997+
if (!($this->_storage instanceof TaggableInterface)) {
998998
$this->markTestSkipped("Storage doesn't implement TaggableInterface");
999999
}
10001000

0 commit comments

Comments
 (0)