示例#1
0
 public function testRemovesGivenIndexesFromArrayAndReturnsItUsingString()
 {
     $expected = ['foo' => 'bar'];
     $actual = Q::arrayExcept(['foo' => 'bar', 'john' => 'doe', 'jane' => 'doe'], 'jane|john');
     $this->assertEquals($expected, $actual);
 }
示例#2
0
 public function testWillRunDataThroughHTMLEntities()
 {
     $expected = htmlentities('<h1>hello</h1>');
     $actual = Q::ent('<h1>hello</h1>');
     $this->assertEquals($expected, $actual);
 }
示例#3
0
 function array_except(array $array, $except)
 {
     return Q::arrayExcept($array, $except);
 }