Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 29 2016 23:28

    doctorjbeam on master

    Change: code cleanup and text f… Fix #322 - Photo comp: next com… (compare)

  • Mar 29 2016 22:19

    doctorjbeam on 1.4.12

    (compare)

  • Mar 29 2016 22:19

    doctorjbeam on master

    Change: reduce line indentation… Change: fixed some potential bu… Change: removed superfluous ret… and 13 more (compare)

  • Mar 29 2016 22:19

    doctorjbeam on 1.4.11

    (compare)

  • Mar 29 2016 22:18

    doctorjbeam on 1.4.10

    (compare)

  • Mar 21 2016 07:27

    doctorjbeam on 1.4.11

    (compare)

  • Mar 21 2016 07:26

    doctorjbeam on master

    Added EmojiOne library Signed-… (compare)

  • Mar 18 2016 07:32

    doctorjbeam on 1.4.10

    (compare)

  • Mar 18 2016 07:32

    doctorjbeam on master

    Change: added Decoda BBCode par… Change: Updates to formatting l… (compare)

  • Mar 18 2016 04:31

    doctorjbeam on 1.4.8

    (compare)

  • Mar 18 2016 04:31

    doctorjbeam on 1.4.6

    (compare)

  • Mar 18 2016 04:31

    doctorjbeam on 1.4.9

    (compare)

  • Mar 18 2016 04:31

    doctorjbeam on 1.4.6

    (compare)

  • Mar 18 2016 04:31

    doctorjbeam on 1.4.8

    (compare)

  • Mar 18 2016 04:31

    doctorjbeam on master

    Change: composer.json bump for … (compare)

  • Mar 18 2016 04:30

    doctorjbeam on 1.4.8

    (compare)

  • Mar 18 2016 04:30

    doctorjbeam on 1.4.6

    (compare)

  • Mar 18 2016 04:23

    doctorjbeam on 1.4.8

    (compare)

  • Mar 18 2016 04:23

    doctorjbeam on master

    Change: removed abandoned packa… Change: Minor alterations to RE… (compare)

  • Mar 18 2016 04:17

    doctorjbeam on master

    Change: composer is bitching ab… (compare)

Ben Cousins
@bcousins
So do I run the core code or just PHPUnit?
Michael Greenhill
@doctorjbeam
You run phpunit against tests you make using the core code
let's say the core code has a class called "ping", with a function called "pong" that returns an (int) 1
Ben Cousins
@bcousins
Right
Michael Greenhill
@doctorjbeam
You create a test called PingTest.php (it has to end in Test). You then "use" the class (eg use Railpage\Ping), create a class called PingTest extending PHPUnitblahblahblah
Each function in the test has to start with "test", eg testPong
then you assert that, yes, a new instance of "ping", executing method "pong", actually does return (int) 1 as described in the code
Ben Cousins
@bcousins
function pingtest extending PHPUnitblah
Michael Greenhill
@doctorjbeam
class PingTest extends extends PHPUnit_Framework_TestCase { }
to be precise
Ben Cousins
@bcousins
Ah, right
Michael Greenhill
@doctorjbeam
The files, classes and functions/methods in your unit test can be called anything as long as the files/classes end in "Test" and the functions/methods start with "test"
Ben Cousins
@bcousins
RP requires PHP 5.5...
Michael Greenhill
@doctorjbeam
although it's a good idea to give them at least a vaguely descriptive name, because PHPUnit will tell you in which class/function a test has failed
correct
PHP5 has been out for years. 5.6 is current
*PHP5.5
Ben Cousins
@bcousins
Which I did not realise and installed the default PHP version - 5.3.10
Michael Greenhill
@doctorjbeam
Ubuntu?
Ben Cousins
@bcousins
12.04, yeah
Michael Greenhill
@doctorjbeam
Yeah, no chance
Upgrade to 14.04 LTS
Or spin up a new VM
Gotta go, home time
Ben Cousins
@bcousins
I'll go reinstall this and apt-get dist-upgrade or something
Safe trip
Michael Greenhill
@doctorjbeam
ta
Michael Greenhill
@doctorjbeam
How'd you go?
Ben Cousins
@bcousins
Letting the update run overnight.
Michael Greenhill
@doctorjbeam
I think I'll set up a vagrant box for RP. It'll make deploying a VM for testing / development easier. You'll be able to clone it easily
Ben Cousins
@bcousins
That'd be good.
Michael Greenhill
@doctorjbeam
Ugh. I'm going to have to refactor my core config
It's getting ridiculously hard to manage in testing
Michael Greenhill
@doctorjbeam
What VM platform do you use?
Ben Cousins
@bcousins
ESXi generally, why?
Michael Greenhill
@doctorjbeam
because Vagrant has lots of VM platform-specific configuration
Ben Cousins
@bcousins
Right...
Michael Greenhill
@doctorjbeam
So if I was going to create a Vagrant box for testing, it needs to work on whichever VM platforms you and I use
Ben Cousins
@bcousins
What do you use?
Michael Greenhill
@doctorjbeam
Hyper-V and VirtualBox
Ben Cousins
@bcousins
I can always spin up Virtualbox.
If it's easier for you...
Michael Greenhill
@doctorjbeam
It'll be some time before the vagrant box is ready
So no rush
Michael Greenhill
@doctorjbeam
vagrant VM is being worked on - https://github.com/railpage/railpagevm
if you install vagrant and clone that repo, you can then run "vagrant up" and up will come the VM
username: vagrant, password:vagrant
It's all open and horribly insecure
Ben Cousins
@bcousins
Michael, I've herringed several posts from Chidda Bang who is now at a point where he (or she) is spamming the board like I used to.