/** * Test pregMatchArray when input is not a string * @expectedException Exception * @expectedExceptionMessage $subject is not a string */ function testPregMatchNotString() { Utils::pregMatchArray(array('/foo/i'), array('foo')); }