libxml_use_internal_errors( true );
$sxe = simplexml_load_string( $resp );
- $this->assertNotType( "bool", $sxe );
+ $this->assertNotInternalType( "bool", $sxe );
$this->assertThat( $sxe, $this->isInstanceOf( "SimpleXMLElement" ) );
}
$result = $ret[0];
- $this->assertNotType( "bool", $result );
+ $this->assertNotInternalType( "bool", $result );
$a = $result["login"]["result"];
$this->assertEquals( "NeedToken", $a );
$result = $ret[0];
- $this->assertNotType( "bool", $result );
+ $this->assertNotInternalType( "bool", $result );
$a = $result["login"]["result"];
$this->assertEquals( "WrongPass", $a );
);
$result = $ret[0];
- $this->assertNotType( "bool", $result );
- $this->assertNotType( "null", $result["login"] );
+ $this->assertNotInternalType( "bool", $result );
+ $this->assertNotInternalType( "null", $result["login"] );
$a = $result["login"]["result"];
$this->assertEquals( "NeedToken", $a );
$result = $ret[0];
- $this->assertNotType( "bool", $result );
+ $this->assertNotInternalType( "bool", $result );
$a = $result["login"]["result"];
$this->assertEquals( "Success", $a );
libxml_use_internal_errors( true );
$sxe = simplexml_load_string( $req->getContent() );
- $this->assertNotType( "bool", $sxe );
+ $this->assertNotInternalType( "bool", $sxe );
$this->assertThat( $sxe, $this->isInstanceOf( "SimpleXMLElement" ) );
- $this->assertNotType( "null", $sxe->login[0] );
+ $this->assertNotInternalType( "null", $sxe->login[0] );
$a = $sxe->login[0]->attributes()->result[0];
$this->assertEquals( ' result="NeedToken"', $a->asXML() );
$req->execute();
libxml_use_internal_errors( true );
$sxe = simplexml_load_string( $req->getContent() );
- $this->assertNotType( "bool", $sxe );
+ $this->assertNotInternalType( "bool", $sxe );
$this->assertThat( $sxe, $this->isInstanceOf( "SimpleXMLElement" ) );
$a = $sxe->query[0]->pages[0]->page[0]->attributes();
}