From: Christian Weiske Date: Thu, 24 Mar 2011 07:41:02 +0000 (+0100) Subject: replace assertType with assertInternalType to please phpunit X-Git-Tag: v0.98.0~123 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3828cfe6d6bb64df763276fa2bc2c4da6ccb06dd;p=semanticscuttle.git replace assertType with assertInternalType to please phpunit --- diff --git a/tests/ajax/GetAdminLinkedTagsTest.php b/tests/ajax/GetAdminLinkedTagsTest.php index d8ec447..2552ea0 100644 --- a/tests/ajax/GetAdminLinkedTagsTest.php +++ b/tests/ajax/GetAdminLinkedTagsTest.php @@ -66,7 +66,7 @@ class ajax_GetAdminLinkedTagsTest extends TestBaseApi ); $data = json_decode($res->getBody()); - $this->assertType('array', $data); + $this->assertInternalType('array', $data); //same number of elements as the menu2Tags array $this->assertEquals( @@ -106,7 +106,7 @@ class ajax_GetAdminLinkedTagsTest extends TestBaseApi ); $data = json_decode($res->getBody()); - $this->assertType('array', $data); + $this->assertInternalType('array', $data); //only one subtag $this->assertEquals(1, count($data)); @@ -146,7 +146,7 @@ class ajax_GetAdminLinkedTagsTest extends TestBaseApi ); $data = json_decode($res->getBody()); - $this->assertType('array', $data); + $this->assertInternalType('array', $data); //we should have only one subtag now, the admin one $this->assertEquals(1, count($data));