From a0d269954534e09c0b9c0f73c927b6eb764c21d9 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Mon, 20 Jun 2011 16:49:53 +0000 Subject: some fixes on tests --- tests/unit/Xml/TRssFeedDocumentTest.php | 2 +- tests/unit/Xml/TXmlElementTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/unit/Xml') diff --git a/tests/unit/Xml/TRssFeedDocumentTest.php b/tests/unit/Xml/TRssFeedDocumentTest.php index e49b5eca..6d96444a 100644 --- a/tests/unit/Xml/TRssFeedDocumentTest.php +++ b/tests/unit/Xml/TRssFeedDocumentTest.php @@ -120,7 +120,7 @@ class TRssFeedDocumentTest extends PHPUnit_Framework_TestCase { $feed->addItem($item); $items = $feed->getItems(); /* var_dump($items); - self::assertType($items[0], 'TRssItem');*/ + self::assertInstanceOf($items[0], 'TRssItem');*/ } public function testSetImage() { diff --git a/tests/unit/Xml/TXmlElementTest.php b/tests/unit/Xml/TXmlElementTest.php index 89baed03..ec560a1c 100644 --- a/tests/unit/Xml/TXmlElementTest.php +++ b/tests/unit/Xml/TXmlElementTest.php @@ -61,7 +61,7 @@ class TXmlElementTest extends PHPUnit_Framework_TestCase { self::assertEquals(null, $element->getElementByTagName('first')); $element->Elements[] = new TXmlElement('first'); $first = $element->getElementByTagName('first'); - self::assertType('TXmlElement', $first); + self::assertInstanceOf('TXmlElement', $first); self::assertEquals('first', $first->getTagName()); } -- cgit v1.2.3