Exemple #1
0
 public function testReadLinesFromFile()
 {
     $instance = new WhereAmI('');
     $expected = file(__FILE__, FILE_IGNORE_NEW_LINES);
     $actual = $instance->readLinesFromFile(__FILE__);
     $this->assertEquals(count($expected) + 1, count($actual));
 }
Exemple #2
0
 public function __construct()
 {
     self::$instance = $this;
     add_action('wp_head', array($this, 'tell_me_where_am_i'));
 }