assertTrue($x) Fail if $x is false
assertFalse($x) Fail if $x is true
assertNull($x) Fail if $x is set
assertNotNull($x) Fail if $x not set
assertIsA($x, $t) Fail if $x is not the class or type $t
assertNotA($x, $t) Fail if $x is of the class or type $t
assertEqual($x, $y) Fail if $x == $y is false
assertNotEqual($x, $y) Fail if $x == $y is true
assertWithinMargin($x, $y, $m) Fail if abs($x - $y) < $m is false
assertOutsideMargin($x, $y, $m) Fail if abs($x - $y) < $m is true
assertIdentical($x, $y) Fail if $x == $y is false or a type mismatch
assertNotIdentical($x, $y) Fail if $x == $y is true and types match
assertReference($x, $y) Fail unless $x and $y are the same variable
assertClone($x, $y) Fail unless $x and $y are identical copies
assertPattern($p, $x) Fail unless the regex $p matches $x
assertNoPattern($p, $x) Fail if the regex $p matches $x
expectError($x) Fail if matching error does not occour
expectException($x) Fail if matching exception is not thrown
ignoreException($x) Swallows any upcoming matching exception
assert($e) Fail on failed expectation object $e
จาก : http://www.simpletest.org/en/unit_test_ ... ation.html
รายชื่อ class ที่ใช้ในการทำสอบของ phpunit
Moderator: mindphp, ผู้ดูแลกระดาน
-
- PHP Super Hero Member
- โพสต์: 758
- ลงทะเบียนเมื่อ: 08/06/2015 10:07 am
-
- Similar Topics
- ตอบกลับ
- แสดง
- โพสต์ล่าสุด
-
- 0 ตอบกลับ
- 2290 แสดง
-
โพสต์ล่าสุด โดย Ittichai_chupol
21/11/2019 6:39 pm
-
- 2 ตอบกลับ
- 2226 แสดง
-
โพสต์ล่าสุด โดย jamepiyawat
05/09/2019 3:26 pm
-
- 0 ตอบกลับ
- 1914 แสดง
-
โพสต์ล่าสุด โดย Patipat
05/08/2019 11:10 am
-
-
โพสต์ใหม่ วิธีการเรียก class โดยเรียกด้วยคำแค่ส่วนหนึ่งของ class ทั้งหมดใน jquery
โดย ewqolf » 07/02/2023 5:58 pm » ใน jQuery & Ajax Knowledge - 0 ตอบกลับ
- 1237 แสดง
-
โพสต์ล่าสุด โดย ewqolf
07/02/2023 5:58 pm
-
-
-
โพสต์ใหม่ การใช้งาน remove class และ add class เพื่อใช้ งาน css
โดย ewqolf » 06/02/2023 5:04 pm » ใน jQuery & Ajax Knowledge - 0 ตอบกลับ
- 1175 แสดง
-
โพสต์ล่าสุด โดย ewqolf
06/02/2023 5:04 pm
-
-
-
โพสต์ใหม่ could not read phpunit.xml.dist ขึ้นเเบบนี้หมายความว่าอะไรค่ะ
โดย thatsawan » 09/11/2014 10:39 pm » ใน Programming - PHP - 2 ตอบกลับ
- 1169 แสดง
-
โพสต์ล่าสุด โดย thatsawan
10/11/2014 4:52 am
-
-
-
โพสต์ใหม่ อยากรู้ว่าไฟล์ phpunit [ต่างๆ]มันเเตกต่างกันยังเเล้วจะต้องใช้ตัวไหน run unittest
โดย thatsawan » 15/11/2014 2:33 pm » ใน Programming - PHP - 0 ตอบกลับ
- 2615 แสดง
-
โพสต์ล่าสุด โดย thatsawan
15/11/2014 2:33 pm
-
ผู้ใช้งานขณะนี้
สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 72