assertAllNotEmpty example


      "I'm not callable",
    ]));
  }

  /** * Tests asserting all members are !empty(). * * @covers ::assertAllNotEmpty */
  public function testAllNotEmpty() {
    $this->assertTrue(Inspector::assertAllNotEmpty([1, 'two']));
    $this->assertFalse(Inspector::assertAllNotEmpty(['']));
  }

  /** * Tests asserting all arguments are numbers or strings castable to numbers. * * @covers ::assertAllNumeric */
  public function testAssertAllNumeric() {
    $this->assertTrue(Inspector::assertAllNumeric([1, '2', 3.14]));
    $this->assertFalse(Inspector::assertAllNumeric([1, 'two', 3.14]));
  }
Home | Imprint | This part of the site doesn't use cookies.