Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.www.php > #22266 > unrolled thread

phpunit: assertIsString() non esiste

Started byoff line <mail@inva.it>
First post2018-09-21 10:51 +0200
Last post2018-09-21 13:22 +0200
Articles 3 — 2 participants

Back to article view | Back to it.comp.www.php


Contents

  phpunit: assertIsString() non esiste off line <mail@inva.it> - 2018-09-21 10:51 +0200
    Re: phpunit: assertIsString() non esiste Alessandro Pellizzari <shuriken@amiran.it> - 2018-09-21 10:27 +0100
      Re: phpunit: assertIsString() non esiste off line <mail@inva.it> - 2018-09-21 13:22 +0200

#22266 — phpunit: assertIsString() non esiste

Fromoff line <mail@inva.it>
Date2018-09-21 10:51 +0200
Subjectphpunit: assertIsString() non esiste
Message-ID<po2bfd$iaj$1@gioia.aioe.org>
<?php // AbcTest.php
class AbcTest extends PHPUnit\Framework\TestCase {

     function testString() {
         $this->assertIsString('abc');
     }

}




$ phpunit AbcTest.php
Error: Call to undefined method AbcTest::assertIsString()

Possibile che non c'è un modo per verificare se un valore è di tipo stringa?

[toc] | [next] | [standalone]


#22267

FromAlessandro Pellizzari <shuriken@amiran.it>
Date2018-09-21 10:27 +0100
Message-ID<g0jrs4F3eniU1@mid.individual.net>
In reply to#22266
On 21/09/2018 09:51, off line wrote:

> Possibile che non c'è un modo per verificare se un valore è di tipo 
> stringa?

https://phpunit.readthedocs.io/en/7.3/assertions.html#assertinternaltype

[toc] | [prev] | [next] | [standalone]


#22268

Fromoff line <mail@inva.it>
Date2018-09-21 13:22 +0200
Message-ID<po2k8t$121k$1@gioia.aioe.org>
In reply to#22267
Il 21/09/2018 11:27, Alessandro Pellizzari ha scritto:
> On 21/09/2018 09:51, off line wrote:
> 
>> Possibile che non c'è un modo per verificare se un valore è di tipo 
>> stringa?
> 
> https://phpunit.readthedocs.io/en/7.3/assertions.html#assertinternaltype
> 

Molto bene, grazie 1000

[toc] | [prev] | [standalone]


Back to top | Article view | it.comp.www.php


csiph-web